It looks like there's some sort of race condition due to the way better-dom seems to handle "DOM extension".
I tried using this on my webpage - and after inserting the JS and clicking the input, I get this:
Uncaught TypeError: this._picker.toggleState is not a function
at a._focusInput (better-dateinput-polyfill.js:228)
at m.handleEvent (better-dom.min.js:8)
_focusInput @ better-dateinput-polyfill.js:228
handleEvent @ better-dom.min.js:8
This happens all the time on my webpage. There's no other JS on the page.
I'm able to reproduce this on the demo consistently by just adding a breakpoint in the initialization code - suggesting it's a race condition.
It looks like there's some sort of race condition due to the way
better-dom
seems to handle "DOM extension".I tried using this on my webpage - and after inserting the JS and clicking the input, I get this:
This happens all the time on my webpage. There's no other JS on the page.
I'm able to reproduce this on the demo consistently by just adding a breakpoint in the initialization code - suggesting it's a race condition.
https://imgur.com/a/z3Nf2wm