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 CHANGED
@@ -4084,9 +4084,11 @@ const OTPInput = React__default["default"].forwardRef(
4084
4084
  setOTP("");
4085
4085
  otpRefs.current[0]?.focus();
4086
4086
  };
4087
- React__default["default"].useImperativeHandle(ref, () => ({
4088
- reset
4089
- }));
4087
+ React.useEffect(() => {
4088
+ React__default["default"].useImperativeHandle(ref, () => ({
4089
+ reset
4090
+ }));
4091
+ }, []);
4090
4092
  const handleChange = (index, value) => {
4091
4093
  const regex = /^\d+$/;
4092
4094
  if (value.length === 1 && regex.test(value) && index >= 0 && index < length) {