shortcut-buttons-flatpickr
shortcut-buttons-flatpickr copied to clipboard
Fails in chrome responsive mode
When initiating a flatpickr instance with the shortcut plugin on chrome in responsive mode the following js error happens:
vendor.8def00a5.js:50420 TypeError: Cannot read property 'appendChild' of undefined
at Object.onReady (vendor.8def00a5.js:98029)
at triggerEvent (vendor.8def00a5.js:50260)
at init (vendor.8def00a5.js:48503)
at FlatpickrInstance (vendor.8def00a5.js:50397)
at _flatpickr (vendor.8def00a5.js:50416)
at Object.flatpickr [as default] (vendor.8def00a5.js:50443)
This is independent of #9 which is triggered for mobile devices as it's happening too in chrome responsive mode with a desktop screen size.
@tpetry thanks for reporting this issue 👍
I believe that even though you're running in responsive mode with a desktop screen size, flatpickr still flags it as mobile leading to the same problem that has been previously described in #9, see the following screenshot also taken in chrome's responsive mode:

Here's the link of the example I used to reproduce this behavior.