Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

When leaving flatpickr, the minute component entered by keyboard is not accepted. #278

@jahrralf

Description

@jahrralf

I'm submitting a ... (check one with "x")

[X] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe

Tell about your platform

  • flatPickr version : 4.6.x
  • Vue.js version : 3.2
  • Browser name and version : Chrome
  • This package version : 11.x.x

https://ankurk91.github.io/vue-flatpickr-component/ vs. https://flatpickr.js.org/examples/#datetime

Current behavior

When you open the flatpickr with datetime configuration for the first time, go to the minute field, enter with the keyboard a number, then click with mouse outside of the flatpicker, then on the flatpickr.js.org you will see the selected minute in the field. When you do the same with vue-flatpickr, you will see that the minute stays "00". When you do the same thing a second time, it works also with vue-flatpickr.

https://us02web.zoom.us/rec/share/VI_OEh1CWWg5EtDHZhZA6znLqQmRfiJ8i7EeaFbYJT3YUd7X-tSIVVPD-5FK9CYW.CEcnweqQ4SOJWZX0?startTime=1679414151000
Code: Jy2&Q@d*

Expected behavior

Also with vue-flatpicker a minute value, which is entered through keyboard, should be put into the form field when leaving the flatpickr.

Minimal reproduction of the problem with instructions

See above.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions