Skip to content

Commit

Permalink
Option group search autofocus (#201)
Browse files Browse the repository at this point in the history
* option group search autofocus

* snapshot updated

* option group only
  • Loading branch information
ChaitanyaGadodia authored and ritz078 committed Feb 5, 2019
1 parent 36d388b commit 5f33728
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ Array [
/>
<input
aria-label="Search"
autoFocus={true}
className="emotion-0"
onChange={[Function]}
onKeyDown={[Function]}
Expand Down Expand Up @@ -1285,6 +1286,7 @@ Array [
/>
<input
aria-label="Search"
autoFocus={true}
className="emotion-0"
onChange={[Function]}
onKeyDown={[Function]}
Expand Down
3 changes: 2 additions & 1 deletion src/components/shared/OptionGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class OptionGroup<OptionType> extends React.PureComponent<
{...searchBoxProps}
inputProps={{
...(searchBoxProps && searchBoxProps.inputProps),
onKeyDown: this.handleKeyPress
onKeyDown: this.handleKeyPress,
autoFocus: true
}}
/>
</div>
Expand Down

1 comment on commit 5f33728

@vercel
Copy link

@vercel vercel bot commented on 5f33728 Feb 5, 2019

Choose a reason for hiding this comment

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

Aliasing failed with the following error:

Error! Instance verification timed out (3m)

Please sign in to comment.