Skip to content

Commit

Permalink
Fixed #408
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 24, 2018
1 parent 2b8d427 commit 126f11d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ export class Dropdown extends Component {
let items = this.renderItems(selectedOption);
let filterElement = this.renderFilter();
let clearIcon = this.renderClearIcon();

if(this.props.editable && this.editableInput) {
let value = label||this.props.value||'';
this.editableInput.value = value;
}

return (
<div id={this.props.id} ref={(el) => this.container = el} className={className} style={this.props.style} onClick={this.onClick}
Expand Down

0 comments on commit 126f11d

Please sign in to comment.