We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4e830f + 5fc4d27 commit 95effa4Copy full SHA for 95effa4
src/index.js
@@ -406,7 +406,7 @@ class DropDownPicker extends React.Component {
406
marginRight: (this.props.labelStyle.hasOwnProperty('textAlign') && this.props.labelStyle.textAlign === 'right') ? 5 : 0,
407
},
408
this.state.choice.label !== null && this.props.selectedLabelStyle,
409
- this.state.choice.icon && {marginLeft: 5}
+ this.state.choice.icon ?? {marginLeft: 5}
410
]} {...this.props.labelProps}>
411
{multiple ? (
412
this.state.choice.length > 0 ? this.getNumberOfItems() : placeholder
0 commit comments