Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ var Select = React.createClass({
},

handleKeyDown: function(event) {
if (this.state.disabled) return;
if (this.props.disabled) return;

switch (event.keyCode) {

Expand All @@ -407,7 +407,7 @@ var Select = React.createClass({
case 27: // escape
if (this.state.isOpen) {
this.resetValue();
} else {
} else if (this.props.clearable) {
this.clearValue(event);
}
break;
Expand Down Expand Up @@ -754,13 +754,13 @@ var Select = React.createClass({
var input;
var inputProps = {
ref: 'input',
className: 'Select-input',
className: 'Select-input ' + (this.props.inputProps.className || ''),
tabIndex: this.props.tabIndex || 0,
onFocus: this.handleInputFocus,
onBlur: this.handleInputBlur
};
for (var key in this.props.inputProps) {
if (this.props.inputProps.hasOwnProperty(key)) {
if (this.props.inputProps.hasOwnProperty(key) && key !== 'className') {
inputProps[key] = this.props.inputProps[key];
}
}
Expand Down
Loading