insin / react-maskedinput

Masked <input/> React component
http://insin.github.io/react-maskedinput/
MIT License
731 stars 197 forks source link

Silence React 15.4 invalid property warnings #80

Closed nathanstitt closed 7 years ago

nathanstitt commented 7 years ago

Remove planceHolderChar and formatCharacters from props before setting them on input element.

The specs had console.error stubbed out, which may be why the warnings weren't noticed. This restores the spy after it's used and adds an explicit spec to test the props are removed.

esarbanis commented 7 years ago

We really need this fix in our project. Nothing worse that customers complaining about console errors :)

iamdustan commented 7 years ago

thanks!

nathanstitt commented 7 years ago

Thanks for the excellent component @iamdustan !