Skip to content

Commit

Permalink
Merge pull request #3427 from JedWatson/remove-focusOption-on-enter
Browse files Browse the repository at this point in the history
remove focusOption invocation on Enter key press
  • Loading branch information
gwyneplaine authored Feb 15, 2019
2 parents c31ef94 + 9e6dafe commit 2d07e5f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,11 +1182,9 @@ export default class Select extends Component<Props, State> {
if (!focusedOption) return;
if (isComposing) return;
this.selectOption(focusedOption);
} else {
this.focusOption('first');
return;
break;
}
break;
return;
case 'Escape':
if (menuIsOpen) {
this.inputIsHiddenAfterUpdate = false;
Expand Down

0 comments on commit 2d07e5f

Please sign in to comment.