Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit b73e31e

Browse files
authored
Merge pull request JedWatson#2291 from jnachtigall/Working_DEL_key
Del key should work normal if not deleteRemoves (fixes JedWatson#2282)
2 parents c64df28 + dcf5094 commit b73e31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ class Select extends React.Component {
546546
this.focusStartOption();
547547
break;
548548
case 46: // delete
549-
event.preventDefault();
550549
if (!this.state.inputValue && this.props.deleteRemoves) {
550+
event.preventDefault();
551551
this.popValue();
552552
}
553553
break;

0 commit comments

Comments
 (0)