Skip to content

Commit

Permalink
fix storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
jsartisan committed Feb 3, 2025
1 parent e839073 commit 2d88e90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Select(props: SelectProps) {
if (open) {
// this is a hack to get the search input to focus when the dropdown is opened
// the reason is, rc-select does not support putting the search input in the dropdown
// and rc-select focus its native input element on dropdown open, but we need to focus the search input
// and rc-select focus its native searchinput element on dropdown open, but we need to focus the search input
// so we use a timeout to focus the search input after the dropdown is opened
setTimeout(() => {
if (!searchRef.current) return;
Expand Down

0 comments on commit 2d88e90

Please sign in to comment.