Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@enableTime={{false}} causes input to reset when focus is lost #550

Open
Kilowhisky opened this issue Sep 29, 2020 · 3 comments
Open

@enableTime={{false}} causes input to reset when focus is lost #550

Kilowhisky opened this issue Sep 29, 2020 · 3 comments
Labels

Comments

@Kilowhisky
Copy link
Contributor

If you build a time picker with the options to @enableTime={{false}} the dropdown resets itself upon losing focus (aka clicking outside it. When focus is lost, the onChange event fires with the original date.

chrome-capture

@Kilowhisky
Copy link
Contributor Author

May be related to.

flatpickr/flatpickr#2206

@Kilowhisky
Copy link
Contributor Author

I rolled back to the 2x release of this plugin and all seems well again. I guess this sounds like an issue with the upstream flatpickr plugin.

I'm going to leave this open because the picker is basically broken until this is fixed.
flatpickr/flatpickr#2113

@RobbieTheWagner
Copy link
Owner

Interesting. @Kilowhisky I suppose we didn't notice this since the examples in the docs all have time pickers. I wonder if we can add logic to this addon to prevent this bad behavior until flatpickr fixes it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants