From 0c7ed8610b693f1b4dc702304ce4c866871049b0 Mon Sep 17 00:00:00 2001 From: alphacoder-mp3 Date: Thu, 7 Mar 2024 07:16:17 +0530 Subject: [PATCH] Autocomplete issuse has been fixed --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 3afd218..d8a975f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -250,7 +250,7 @@ const OTPInput = ({ onBlur: handleBlur, onKeyDown: handleKeyDown, onPaste: handlePaste, - autoComplete: 'off', + autoComplete: 'one-time-code', 'aria-label': `Please enter OTP character ${index + 1}`, style: Object.assign( !skipDefaultStyles ? ({ width: '1em', textAlign: 'center' } as const) : {},