Skip to content

Commit

Permalink
fix: adding marcus' suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
macci001 committed Dec 9, 2024
1 parent 1def199 commit fffa4bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/input-otp/src/use-input-otp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export function useInputOtp(originalProps: UseInputOtpProps) {
ref: inputRef,
name: name,
value: value,
autoFocus: originalProps.autoFocus,
autoFocus,
onChange: setValue,
onBlur: chain(focusProps.onBlur, props?.onBlur),
onComplete: onComplete,
Expand All @@ -255,6 +255,7 @@ export function useInputOtp(originalProps: UseInputOtpProps) {
setValue,
props.onBlur,
onComplete,
autoFocus,
],
);

Expand Down

0 comments on commit fffa4bb

Please sign in to comment.