question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

manual input field changes are reverted before hooks fire when time is enabled

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
johnmikelcommented, Jan 13, 2020

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.

1reaction
ezarownycommented, Mar 20, 2020

@chmln I’m sorry I wasn’t able submit a unit test in a reasonable amount of time. I appreciate your work on flatpickr!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found