ankurk91 / vue-flatpickr-component

Vue.js component for Flatpickr datetime picker :calendar:
https://ankurk91.github.io/vue-flatpickr-component/
MIT License
968 stars 102 forks source link

using 2 time picker on same page open another time picker #245

Closed agus24 closed 2 years ago

agus24 commented 2 years ago

I'm submitting a ...

[x] Bug report
[ ] Feature request
[ ] Other, please describe

Tell about your platform

Current behavior using 2 time picker on same page open another time picker

Expected behavior open only 1 time picker

Minimal reproduction of the problem with instructions put 2 time picker with this config

time: {
            wrap:true,
            altInput:true,
            allowInput:true,
            enableTime: true,
            noCalendar: true
          }

then add 2 input with same config will cause this issue happen

https://user-images.githubusercontent.com/23353234/150959628-3319c9e6-93f0-47c2-bf87-8b24dfdd97a0.mov

ankurk91 commented 2 years ago

please share minimal reproduction code.

You can copy this fiddle https://jsfiddle.net/nv5h7skL/3/

PS:

I could not reproduce the issue in fiddle. Looks like your are using the component in a modal, so try to use modal in fiddle too.

ankurk91 commented 2 years ago

Closing due to lack of info