diff --git a/src/components/input/MultiInputField.tsx b/src/components/input/MultiInputField.tsx index 1102e0b..4d08360 100644 --- a/src/components/input/MultiInputField.tsx +++ b/src/components/input/MultiInputField.tsx @@ -12,7 +12,7 @@ type Props = { } & Omit, "id">; -function OTPInputField({ onChange, maxLength = 6, htmlFor, labelText, className, value = '', ...restProps }: Props) { +function OTPInputField({ onChange, maxLength = 6, htmlFor, labelText, className, autoFocus, value = '', ...restProps }: Props) { const values = value?.toString().split('').slice(0, maxLength); const inputRefs = useRef(Array.from({ length: maxLength }, () => createRef())); const [prevLength, setPrevLength] = useState(0); @@ -58,6 +58,7 @@ function OTPInputField({ onChange, maxLength = 6, htmlFor, labelText, className, {inputRefs?.current?.map((ref, i) => { return ( کد ۶ رقمی ارسال شده به شماره {phoneNumber} را وارد نمایید.

کلمه عبور خود را وارد نمایید.