Property 'call' issue on IE11
See original GitHub issueI’ve been running in to some IE11 bugs in flatpickr recently. What troubles me the most is, that they seem inconsistent - sometimes they arise, sometimes they don’t. However i’ve been able to reproduce the following today:
When creating a default instance of flatpickr with no added options or anything, i receive an error when selecting a date in IE11:
SCRIPT5007: Unable to get property 'call' of undefined or null reference
From line 851 in flatpickr.js:
targetNode = Array.prototype.find.call(self.days.children, function (c, i) { ... }
I can reproduce in a current project of mines and with af fork of the bareboned jsfiddle. I’m on the newest version of flatpickr (4.4.3). Any ideas to a fix for this situation?
jsfiddle: https://jsfiddle.net/rbsmidt/a3jd2d88/
Environment flatpickr version used: 4.4.3 Browser name and version: IE 11 OS and version: Win 10
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
@chmln i’ve upgraded to latest release and from my testing so far everything works just as expected in IE11. I’ll keep testing and monitoring the sites i have in production with flatpickr, but i’m closing the issue as it seems resolved with release 4.4.4.
Thanks for your great work!
Understood. @chmln I’ll also do some testing once it’s out. Thanks for writing and maintaining this library btw, it’s super useful. 😃
On Thu, Apr 5, 2018, 9:45 AM Rasmus Boje Smidt notifications@github.com wrote: