-
Notifications
You must be signed in to change notification settings - Fork 256
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 'start' of null #141
Comments
Could you provide a demo repo with reproducible error? |
I have this problem as well. Using Enzyme to simulate an onChange event causes this error to throw. I will try and get a demo repo up for you. react-input-mask: 2.0.1 |
It must be due to firing onChange on Input without focus. Have an idea how to fix it, but it's better to see a demo first. Could you also try to set a focus on input and check if error is gone? |
I created a demo app that replicates this issue. https://github.com/crstamps2/react-input-mask-enzyme |
Fixed in 2.0.2 |
While that issue was resolved, upgrading the package caused a new issue. https://travis-ci.com/crstamps2/react-input-mask-enzyme/builds/76073960 |
It happens because of the undefined |
You're right. My bad. All is good with this then! Thanks for the quick responses! |
lo solucione quitando el onFocus del input que utilizaba |
We are using the version 1.2.2 and we tried to upgrade to the latest version. We got the following error: Cannot read property 'start' of null. Could you please help us?
<InputMask type="tel" className="" autoComplete="tel-national" placeholder="(555) 555-0199" mask="(999) 999-9999" value= onBlur= onChange=/>
The text was updated successfully, but these errors were encountered: