File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react/one-time-password-field/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -684,7 +684,7 @@ const OneTimePasswordFieldInput = React.forwardRef<
684
684
// additional input. Handle this the same as if a user were
685
685
// pasting a value.
686
686
event . preventDefault ( ) ;
687
- userActionRef . current = { type : 'paste' } ;
687
+ userActionRef . current = { type : 'autocomplete- paste' } ;
688
688
dispatch ( { type : 'PASTE' , value } ) ;
689
689
keyboardActionTimeoutRef . current = window . setTimeout ( ( ) => {
690
690
userActionRef . current = null ;
@@ -705,7 +705,7 @@ const OneTimePasswordFieldInput = React.forwardRef<
705
705
// of just the value of the given input?
706
706
dispatch ( { type : 'CLEAR_CHAR' , index, reason : 'Cut' } ) ;
707
707
return ;
708
- case 'paste' :
708
+ case 'autocomplete- paste' :
709
709
// the PASTE handler will already set the value and focus the final
710
710
// input; we want to skip focusing the wrong element if the browser fires
711
711
// onChange for the first input. This sometimes happens during autocomplete.
@@ -940,7 +940,7 @@ type KeyboardActionDetails =
940
940
ctrlKey : boolean ;
941
941
}
942
942
| { type : 'cut' }
943
- | { type : 'paste' } ;
943
+ | { type : 'autocomplete- paste' } ;
944
944
945
945
type UpdateAction =
946
946
| {
You can’t perform that action at this time.
0 commit comments