Skip to content

Commit

Permalink
Merge pull request #9601 from jayeshmangwani/focus_lost_on_enter
Browse files Browse the repository at this point in the history
added blurOnSubmit to OptionsSelector for prenting empty search
  • Loading branch information
Julesssss authored Jun 29, 2022
2 parents 27f58cd + faff1b5 commit a757446
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 @@ -343,6 +343,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 a757446

Please sign in to comment.