manual input field changes are reverted before hooks fire when time is enabled
See original GitHub issueDescription
When allowInput
and enableTime
are true
, changes to the input field are reverted before I can examine the changes in a hook.
The repro link contains similar examples for a flatpickr with and without time enabled. Only the flatpickr instance with time exhibits this behavior.
Repro link:
https://jsfiddle.net/ezarowny/qktphaym/
Your Environment
- flatpickr version used: 4.6.3
- Browser name and version: Chrome 79
- OS and version: macOS 10.15.2
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Invoke a hook on the Features module when the ... - Drupal
When a Feature module is reverted, no hooks are invoked on that module. hook_features_revert() is invoked on the components contained within ...
Read more >Trigger change on value of form field change - Stack Overflow
Creating a hook for input and emit change event on input change. The downside of this is that you will get duplicate events...
Read more >react-hook-form/CHANGELOG.md at master - GitHub
Changed. isValid formState is no longer only applicable with onChange , onTouched , and onBlur mode.
Read more >githooks Documentation - Git
Before Git invokes a hook, it changes its working directory to either $GIT_DIR in a bare repository or the root of the working...
Read more >pre-commit
We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can confirm this. There really is a bug in 4.6.3 regarding onblur of the flatpickr. I decided to downgrade all my packages (both in node and in browser) to 4.6.1 and it works fine.
@chmln I’m sorry I wasn’t able submit a unit test in a reasonable amount of time. I appreciate your work on flatpickr!