Skip to content

Commit

Permalink
fix: focus handler (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmyg committed Nov 24, 2021
1 parent 6d32c71 commit 3b17fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Picker/PickerToggle.tsx
Expand Up @@ -106,7 +106,7 @@ const PickerToggle: RsRefForwardingComponent<typeof ToggleButton, PickerTogglePr
setActive(true);
onFocus?.(event);
if (input) {
inputRef.current.focus();
inputRef.current?.focus();
}
},
[input, onFocus]
Expand Down

2 comments on commit 3b17fbc

@vercel
Copy link

@vercel vercel bot commented on 3b17fbc Nov 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3b17fbc Nov 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rsuite-nextjs – ./docs

rsuite-nextjs-git-main-rsuite.vercel.app
rsuite-nextjs-rsuite.vercel.app
rsuite-nextjs.vercel.app

Please sign in to comment.