We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 117e038 commit 9549285Copy full SHA for 9549285
1 file changed
components/lib/inputotp/InputOtp.js
@@ -228,6 +228,7 @@ export const InputOtp = React.memo(
228
invalid: props?.invalid,
229
tabIndex: props?.tabIndex,
230
unstyled: props?.unstyled,
231
+ autoFocus: props?.autoFocus && inputElementIndex === 0,
232
'aria-label': ariaLabel('otpLabel', { 0: inputElementIndex + 1 }),
233
className: cx('input'),
234
pt: ptm('input')
0 commit comments