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

Server side rendering failing on undefined navigator #82

Closed
justinrex opened this issue Dec 14, 2016 · 3 comments
Closed

Server side rendering failing on undefined navigator #82

justinrex opened this issue Dec 14, 2016 · 3 comments

Comments

@justinrex
Copy link

https://github.com/insin/react-maskedinput/blob/master/src/index.js#L239

running a node server and trying to render this server side. Running into an issue because navigator is not available on the server

line 239
return navigator.userAgent.match(/Android/i)

@aesopwolf
Copy link
Contributor

Just ran into the same issue. Seems like the events handlers can be stored in this.state after componentDidMount.

@aesopwolf
Copy link
Contributor

It was actually a lot easier than that #83

@justinrex
Copy link
Author

👍

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

2 participants