Skip to content

Commit 95effa4

Browse files
authored
Merge pull request hossein-zare#175 from pjl4/patch-1
Fix placeholder margin issue
2 parents e4e830f + 5fc4d27 commit 95effa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class DropDownPicker extends React.Component {
406406
marginRight: (this.props.labelStyle.hasOwnProperty('textAlign') && this.props.labelStyle.textAlign === 'right') ? 5 : 0,
407407
},
408408
this.state.choice.label !== null && this.props.selectedLabelStyle,
409-
this.state.choice.icon && {marginLeft: 5}
409+
this.state.choice.icon ?? {marginLeft: 5}
410410
]} {...this.props.labelProps}>
411411
{multiple ? (
412412
this.state.choice.length > 0 ? this.getNumberOfItems() : placeholder

0 commit comments

Comments
 (0)