shortcut-buttons-flatpickr icon indicating copy to clipboard operation
shortcut-buttons-flatpickr copied to clipboard

Fails in chrome responsive mode

Open tpetry opened this issue 6 years ago • 1 comments

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)
Bildschirmfoto 2019-08-20 um 16 50 07

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 avatar Aug 20 '19 14:08 tpetry

@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:

image

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

jcsmorais avatar Sep 21 '19 06:09 jcsmorais