dhre-ui-kit 0.0.332 → 0.0.333
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +3 -0
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4153,6 +4153,9 @@ const OTPInput = React.forwardRef(
|
|
|
4153
4153
|
}
|
|
4154
4154
|
}));
|
|
4155
4155
|
const handleChange = (index, value) => {
|
|
4156
|
+
if (/^\.$/.test(value) || value === "\u25CF.") {
|
|
4157
|
+
return;
|
|
4158
|
+
}
|
|
4156
4159
|
const specialCharacterRegex = /[^a-zA-Z0-9 ]/;
|
|
4157
4160
|
if (value === "" || value?.length > 1 || !specialCharacterRegex.test(value)) {
|
|
4158
4161
|
const regex = /^\d+$/;
|