allowInput=true and Enter keypress form submit
See original GitHub issueFirstly, thanks for the beautiful date/time picker.
Now, I would like to submit my form on pressing the Enter key when combined with flatpickr with allowInput=true
.
Currently flatpickr consumes the Enter keypress event and calls the parseDate
callback. Is there a way to disable this?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Submitting a form on 'Enter' with jQuery? - Stack Overflow
Does anyone know if this is a Webkit issue (Adobe AIR uses Webkit for HTML), or if I've bunged things up? I tried:...
Read more >How to submit a form on Enter button using jQuery
To submit the form using 'Enter' button, we will use jQuery keypress() method and to check the 'Enter' button is pressed or not, ......
Read more >The Enter Key should Submit Forms, Stop Suppressing it
When enter is clicked in the number input, the keypress event handler determines which submit button is appropriate and clicks it. While this ......
Read more >Submit Form With Enter Key Using jQuery | John Dalesandro
How to use jQuery to submit a web-based form when the enter key is pressed.
Read more >How To Trigger Button Click on Enter - W3Schools
Trigger a Button Click on Enter. Press the "Enter" key inside the input field to trigger the button: Button. Example.
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’m using
flatpickr v4.5.2
and seem to running into this issue. Is it possible there has been a regression since the fix?I’m binding the flatpickr instance only to one element but experience the same problem. Every Enter press on an input field opens the datepicker.
flatpickr v.4.5.7
Any solutions?