sanniassin / react-input-mask

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

error after upgrade to react 18 #305

Open romanown opened 1 year ago

romanown commented 1 year ago

after upgrade from react 17 to react 18.2.0 i have error Warning: React does not recognize the isPhone prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase isphone instead. If you accidentally passed it from a parent component, remove it from the DOM element. at input at InputElement (/var/www/dev.local/desktop/node_modules/react-input-mask/lib/react-input-mask.development.js:497:30)

burningyouth commented 1 year ago

Bump. I had a similar error, but with the maskPlaceholder. I suppose it's because mask component passes everything to the input, even props for an internal use only. If this is the case, then it should be avoided.