Open timkrins opened 5 years ago
Unless I'm misunderstanding I believe you're looking for the onValueUpdate
flatpickr event.
@jacobmischka nope, onValueUpdate
is not fired for me when the form input loses focus.
I'm currently using onClose
to handle blur events.
onClose does not work for inline
Thanks for creating a ticket. I am glad to be not the only one fighting with this issue. I solved it with a bit less code:
((Code removed))
I updated to react-flatpickr version 3.10.13
which is based on flatpickr version 4.6.13
.
The workaround I created four years ago does not work any more, but @timkrins's still does, so I deleted my comment from four years ago.
Just figuring out a way to fire the
onChange
event when a user has entered a date into the input box and doesn't specifically press enter to lose the input focus - and I came up with this solution, but want to check, is there a better way?