Code Monkey home page Code Monkey logo

Comments (2)

nickyoung87 avatar nickyoung87 commented on August 10, 2024 1

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.

image

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.

elter1109 avatar elter1109 commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.