Skip to content

Commit

Permalink
Merge pull request #2291 from jnachtigall/Working_DEL_key
Browse files Browse the repository at this point in the history
Del key should work normal if not deleteRemoves (fixes #2282)
  • Loading branch information
JedWatson committed Jan 13, 2018
2 parents c64df28 + dcf5094 commit b73e31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ class Select extends React.Component {
this.focusStartOption();
break;
case 46: // delete
event.preventDefault();
if (!this.state.inputValue && this.props.deleteRemoves) {
event.preventDefault();
this.popValue();
}
break;
Expand Down

0 comments on commit b73e31e

Please sign in to comment.