react-imask
Advanced tools
Comparing version 6.4.1-alpha.0 to 6.4.1
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "6.4.1-alpha.0", | ||
"version": "6.4.1", | ||
"homepage": "https://imask.js.org/", | ||
@@ -33,3 +33,3 @@ "description": "React input mask", | ||
}, | ||
"gitHead": "52eb25edb42b436fe2c66c74fddbda82f110429f", | ||
"gitHead": "0b04f2c44bd1f3f04b33cc80e624bc531dfc425e", | ||
"devDependencies": { | ||
@@ -36,0 +36,0 @@ "@types/react": "^17.0.15", |
@@ -16,4 +16,7 @@ # React IMask Plugin | ||
```javascript | ||
import { useRef } from 'react'; | ||
import { IMaskInput } from 'react-imask'; | ||
// use ref to get access to internal "masked = ref.current.maskRef" | ||
const ref = useRef(null); | ||
<IMaskInput | ||
@@ -24,2 +27,3 @@ mask={Number} | ||
unmask={true} // true|false|'typed' | ||
ref={ref} | ||
inputRef={el => this.input = el} // access to nested input | ||
@@ -93,8 +97,3 @@ // DO NOT USE onChange TO HANDLE CHANGES! | ||
## Many Thanks to | ||
[@Yordis Prieto](https://github.com/yordis) | ||
[@Alexander Kiselev](https://github.com/MaaKut) | ||
## Support Development | ||
[Paypal](https://www.paypal.me/alexeykryazhev/3) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
255374
0
97