jcsmorais / shortcut-buttons-flatpickr

Flatpickr's plugin that provides users an alternative way to interact with the datetime picker.
MIT License
26 stars 15 forks source link

flatpickr ShortcutButtonsPlugin error fp.calendarContainer is undefined #21

Open danijel2017 opened 3 years ago

danijel2017 commented 3 years ago

Error occured in mobile view it is because flatpickr fp.calendarContainer is undefined in shortcut-buttons-flatpickr library. You should skip to appendChild if fp.calendarContainer is undefined

image

It is urgent issue in my side, so please fix it

jcsmorais commented 3 years ago

Hi @danijel2017 thanks for reporting this 👍

Feel free to open a PR and I'll happily review it and get it in an upcoming release 😉

larshanskrause commented 2 years ago

I've added #41 to resolve this issue. Check out my temporary fork https://github.com/larshanskrause/shortcut-buttons-flatpickr including a build with this fix.