uvarov-frontend / vanilla-calendar-pro

Vanilla Calendar is a versatile JavaScript date and time picker with TypeScript support, making it compatible with any JavaScript framework or library. It is designed to be lightweight, simple to use, and feature-rich without relying on external dependencies.
https://vanilla-calendar.pro
MIT License
445 stars 58 forks source link

fix: make sure to create picker before calling update(), fixes #274 #285

Closed ghiscoding closed 1 month ago

ghiscoding commented 1 month ago

fixes #274

for more info about the bug, visit issue #274, the animated gif below simply shows that the input element is no longer being transformed after calling the .update(). Prior to this fix, calling the update, before opening the picker, would have reassigned and transformed the input element to include new picker element which was wrong, the input should never be changed and remain untouched

brave_TNpiLAXhDD

ghiscoding commented 1 month ago

Also note that I already have this change in my fork and I have been using it for a few weeks already and it really fixed the issue. That was the last bug that I had with your lib. However, I still cannot drop my fork and use your project just yet until this new Discussion #279 is addressed. I'm so close to be able to drop my fork and use your great project again :)