sanniassin / react-input-mask

Input masking component for React. Made with attention to UX.
MIT License
2.22k stars 258 forks source link

#224 Does not work Jest snapshot testing #225

Open npi3pak opened 4 years ago

npi3pak commented 4 years ago

Adds an input check that fixes the bug in #224 Also adds a string type check which is missing in some cases when i use jest

iam4x commented 4 years ago

This also fix an issue when the input is blured because of page change and form unmount, thanks :+1: I've published a fix on npm in the meantime => npm install -S @iam4x/react-input-mask@^3.0.0-alpha.3

ptgamr commented 3 years ago

Any chance getting this merge please ?

mushkin-v commented 7 months ago

Any progress on a fix? This is still an issue and I am getting an error with react-test-renderer and Storybook7!

  TypeError: Cannot read properties of null (reading 'addEventListener')

      at node_modules/react-input-mask/lib/react-input-mask.development.js:219:11
...