Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'focus' of undefined #85

Closed
panay opened this issue Feb 13, 2019 · 2 comments
Closed

Cannot read property 'focus' of undefined #85

panay opened this issue Feb 13, 2019 · 2 comments

Comments

@panay
Copy link

panay commented Feb 13, 2019

This error breaks here: setTimeout(function(){n[0].focus()},10)
At the setFocusedDate function, I think.

This occurs when I try to leave a page with the picker.

@MikaelEdebro
Copy link
Owner

Please try updating to most recent version (at least 2.6.1). I've added a small fix that I think should resolve this issue.

@alisspers
Copy link

We seem to be getting this error on a semi-regular basis still. We use version 2.7.1 of the lib.

I'm having a hard time reproducing the error myself but it's reported to Sentry from time to time. It seems to only affect mobile browsers (see attached image).

Any suggestions?

Screenshot 2020-04-09 at 09 37 48

Screenshot 2020-04-09 at 09 33 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants