Skip to content

Commit

Permalink
added blurOnSubmit to OptionsSelector for prenting empty search
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshmangwani committed Jun 28, 2022
1 parent 84f6bbe commit faff1b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/OptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ class OptionsSelector extends Component {
this.relatedTarget = e.relatedTarget;
}}
selectTextOnFocus
blurOnSubmit={Boolean(this.state.allOptions.length)}
/>
);
const optionsList = this.props.shouldShowOptions ? (
Expand Down

0 comments on commit faff1b5

Please sign in to comment.