Skip to content

Commit

Permalink
Merge pull request #175 from pjl4/patch-1
Browse files Browse the repository at this point in the history
Fix placeholder margin issue
  • Loading branch information
hossein-zare authored Jan 5, 2021
2 parents e4e830f + 5fc4d27 commit 95effa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ class DropDownPicker extends React.Component {
marginRight: (this.props.labelStyle.hasOwnProperty('textAlign') && this.props.labelStyle.textAlign === 'right') ? 5 : 0,
},
this.state.choice.label !== null && this.props.selectedLabelStyle,
this.state.choice.icon && {marginLeft: 5}
this.state.choice.icon ?? {marginLeft: 5}
]} {...this.props.labelProps}>
{multiple ? (
this.state.choice.length > 0 ? this.getNumberOfItems() : placeholder
Expand Down

0 comments on commit 95effa4

Please sign in to comment.