Comments (2)
Alright I was finally able to revisit this issue and seem to have got a fix in place. I opened a PR but in case this repo is not managed I will supply my solution here as well.
What I did was just fork the repo and then pull the code from it and create my own ReactInputDateMask
component inside my project.
I then edited the first line of the util.js to be this instead:
const ua = typeof window !== "undefined" ? window.navigator?.userAgent ?? "" : "";
That really is all there was to it. I did also convert it to a React functional component and did the export differently. I am not sure if that is necessary or not, so if it still gives you issues or doesn't work at all you may want to try that.
Hopefully this helps someone out there!
from react-input-date-mask.
hi @nickyoung87 , sorry for the long answer, unfortunately, at the moment I do not support this project, copying and correcting the code was a great solution, thank you
from react-input-date-mask.
Related Issues (3)
- Hooks are causing errors. HOT 2
- autoFocus don't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-input-date-mask.