Closed justinrex closed 7 years ago
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)
return navigator.userAgent.match(/Android/i)
Just ran into the same issue. Seems like the events handlers can be stored in this.state after componentDidMount.
this.state
componentDidMount
It was actually a lot easier than that https://github.com/insin/react-maskedinput/pull/83
👍
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)