Skip to content

Commit

Permalink
Merge pull request #13884 from storybookjs/select-search-input
Browse files Browse the repository at this point in the history
UI: Select search input value on /
  • Loading branch information
shilman authored Feb 16, 2021
2 parents fdb1100 + b9858e5 commit 8c3d215
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ui/src/components/sidebar/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const Search = React.memo<{
matchesKeyCode('Slash', event)
) {
inputRef.current.focus();
inputRef.current.select();
event.preventDefault();
}
};
Expand Down

0 comments on commit 8c3d215

Please sign in to comment.