Skip to content

Commit

Permalink
Properly compute empty-value flag for options
Browse files Browse the repository at this point in the history
  • Loading branch information
drmalex07 committed Jun 6, 2016
1 parent 863d280 commit d447343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/select-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var Select = React.createClass({

var textprops = {
className: this.props.textClassName +
((!currentOption || !currentOption.value)? ' empty-value' : ''),
((!currentOption || (_.isObject(currentOption) && !currentOption.value))? ' empty-value' : ''),
style: {
width: this.props.textWidth,
display: 'inline-block',
Expand Down

0 comments on commit d447343

Please sign in to comment.