Closed ericconstantinides closed 5 years ago
Occasionally, after about 8 instances of of the datepicker, the firstChild is undefined and crashes the datepicker. Changing "if (!dp.el)" to "if (!dp.el || !dp.el.firstChild)" fixes this issue.
Thanks for the tiny-date-picker! I'm using it in a React app and it's working great!
Thanks for the PR! I'm way behind on my OSS work right now due to lots of different things, so sorry for the delay!
Occasionally, after about 8 instances of of the datepicker, the firstChild is undefined and crashes the datepicker. Changing "if (!dp.el)" to "if (!dp.el || !dp.el.firstChild)" fixes this issue.