Open zozich opened 4 years ago
Faced the same issue in Chrome iOS Credit card mask 9999 9999 9999 9999 Application crashes when autocomplete
@therealsqvad This is where I migrated instead and what solves the issue https://github.com/s-yadav/react-number-format
FWIW this appears to be fixed in the latest alpha of 3.0. I reproduced it with the latest stable release in a CodeSandbox then updated to the latest alpha and don't see that error anymore.
Was facing same issue and found that forgot to pass the value
prop to the mask.
Just reproduced this same issue on iOS only.
Same thing here. I managed to fix the crash by passing maxLength={5} to the expiary date element. It should help you
When I try to autofill any value into phone input created via ReactInputMask, it crashes the application. This is the error we receive in console on production: https://reactjs.org/docs/error-decoder.html/?invariant=185
This is how InputMask is called from parent:
And this is how it looks inside:
Reproducible only on iOS