BeforeMaskedStateChange ... Not working!
I am trying to use this function to check for date masking on month. but it's simply not logging anythig even if i passed the props correctly in the component
use npm i [email protected]
This is likely happening due to the version mismatch between the library and the types. When you install react-input-mask, the latest stable version 2.0.4 gets installed. However, when you install the @types/react-input-mask package, it installs types for version 3, which is currently in alpha.
As a result, typescript provides incorrect props. So, BeforeMaskedStateChange is not implemented in the version of the package you're using
Yup, it's because of version mismatch, thanks you :)
This is likely happening due to the version mismatch between the library and the types. When you install
react-input-mask, the latest stable version 2.0.4 gets installed. However, when you install the@types/react-input-maskpackage, it installs types for version 3, which is currently in alpha. As a result, typescript provides incorrect props. So,BeforeMaskedStateChangeis not implemented in the version of the package you're using