Skip to content

Commit 377ed22

Browse files
committed
add a new .changeset file
1 parent 40142cf commit 377ed22

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/kind-icons-tan.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
---
44

55
Fix: disable otp input
6-
Fix: one-time-password-field autoComplete not working in Chrome on iOS

.changeset/ready-rules-doubt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@radix-ui/react-one-time-password-field': patch
3+
---
4+
5+
fix for [OneTimePasswordField] autoComplete not working in Chrome on iOS

packages/react/one-time-password-field/src/one-time-password-field.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ const OneTimePasswordFieldInput = React.forwardRef<
567567
__scopeOneTimePasswordField,
568568
onInvalidChange,
569569
index: indexProp,
570+
maxLength = 1,
570571
...props
571572
}: ScopedProps<OneTimePasswordFieldInputProps>,
572573
forwardedRef
@@ -647,6 +648,7 @@ const OneTimePasswordFieldInput = React.forwardRef<
647648
data-protonpass-ignore={supportsAutoComplete ? undefined : 'true'}
648649
data-bwignore={supportsAutoComplete ? undefined : 'true'}
649650
inputMode={validation?.inputMode}
651+
maxLength={maxLength}
650652
pattern={validation?.pattern}
651653
readOnly={context.readOnly}
652654
value={char}

0 commit comments

Comments
 (0)