qodesmith / datepicker

Get a date with JavaScript! A datepicker with no dependencies.
344 stars 101 forks source link

Object doesn't support property or method 'getRootNode' #93

Closed kukudim closed 4 years ago

kukudim commented 4 years ago

Datepicker not initialize in IE11 with error: Object doesn't support property or method 'getRootNode' Can you check please?

qodesmith commented 4 years ago

@iammugik I think I see what's happening. Since this library supports usage with a shadow dom, I'm doing a check with getRootNode to determine wether or not we're in a shadow dom. This doesn't work with IE. I'll get a fix together.

kukudim commented 4 years ago

@qodesmith great, thanks!

qodesmith commented 4 years ago

@iammugik Ok, a fix has been pushed. Can you upgrade to 5.13.0 and tell me if it works for you now?

kukudim commented 4 years ago

@qodesmith yes, it works! thank you for quick fix :)