File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
packages/react/one-time-password-field/src Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 3
3
---
4
4
5
5
Fix: disable otp input
6
- Fix: one-time-password-field autoComplete not working in Chrome on iOS
Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @radix-ui/react-one-time-password-field ' : patch
3
+ ---
4
+
5
+ fix for [ OneTimePasswordField] autoComplete not working in Chrome on iOS
Original file line number Diff line number Diff line change @@ -567,6 +567,7 @@ const OneTimePasswordFieldInput = React.forwardRef<
567
567
__scopeOneTimePasswordField,
568
568
onInvalidChange,
569
569
index : indexProp ,
570
+ maxLength = 1 ,
570
571
...props
571
572
} : ScopedProps < OneTimePasswordFieldInputProps > ,
572
573
forwardedRef
@@ -647,6 +648,7 @@ const OneTimePasswordFieldInput = React.forwardRef<
647
648
data-protonpass-ignore = { supportsAutoComplete ? undefined : 'true' }
648
649
data-bwignore = { supportsAutoComplete ? undefined : 'true' }
649
650
inputMode = { validation ?. inputMode }
651
+ maxLength = { maxLength }
650
652
pattern = { validation ?. pattern }
651
653
readOnly = { context . readOnly }
652
654
value = { char }
You can’t perform that action at this time.
0 commit comments