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

interacting with input[type=date] dialog fires unexpected onchange event #1

Open
skibz opened this issue Dec 9, 2021 · 0 comments
Open
Labels
bug Something isn't working firefox help wanted Extra attention is needed

Comments

@skibz
Copy link
Owner

skibz commented Dec 9, 2021

  • in chrome the change event only gets emitted once return is pressed, or when focus is lost
  • this bug causes immediate and undesired page navigations
  • we can solve this lazily by debouncing/throttling the change event
  • we can solve this rigorously by listening for focus/blur/return keypress and checking whether the value changed
@skibz skibz added bug Something isn't working help wanted Extra attention is needed firefox labels Dec 9, 2021
@skibz skibz changed the title interacting with input[type=date] dialog fires onchange event interacting with input[type=date] dialog fires unexpected onchange event Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working firefox help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant