Skip to content

Commit 902093f

Browse files
committed
Merge pull request JedWatson#450 from davidpene/master
simplifying handleKey function
2 parents 38a3a45 + d851b8c commit 902093f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Select.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,13 @@ var Select = React.createClass({
425425
},
426426

427427
handleKeyDown: function(event) {
428-
event.preventDefault();
429428
if (this.props.disabled) return;
430429
switch (event.keyCode) {
431430
case 8: // backspace
432431
if (!this.state.inputValue && this.props.backspaceRemoves) {
433432
this.popValue();
434433
}
435-
return;
434+
break;
436435
case 9: // tab
437436
if (event.shiftKey || !this.state.isOpen || !this.state.focusedOption) {
438437
return;

0 commit comments

Comments
 (0)