dhre-ui-kit 0.0.253 → 0.0.254
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 +5 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4048,9 +4048,11 @@ const OTPInput = React.forwardRef(
|
|
|
4048
4048
|
setOTP("");
|
|
4049
4049
|
otpRefs.current[0]?.focus();
|
|
4050
4050
|
};
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4051
|
+
useEffect(() => {
|
|
4052
|
+
React.useImperativeHandle(ref, () => ({
|
|
4053
|
+
reset
|
|
4054
|
+
}));
|
|
4055
|
+
}, []);
|
|
4054
4056
|
const handleChange = (index, value) => {
|
|
4055
4057
|
const regex = /^\d+$/;
|
|
4056
4058
|
if (value.length === 1 && regex.test(value) && index >= 0 && index < length) {
|