react-input-mask icon indicating copy to clipboard operation
react-input-mask copied to clipboard

BeforeMaskedStateChange ... Not working!

Open kaushal-cmyk opened this issue 1 year ago • 3 comments

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

kaushal-cmyk avatar Jun 12 '24 08:06 kaushal-cmyk

use npm i [email protected]

MitPalVach avatar Aug 26 '24 19:08 MitPalVach

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

kamolmachine avatar Aug 26 '24 19:08 kamolmachine

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-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

T-Damer avatar Aug 28 '24 10:08 T-Damer