Skip to content

Commit

Permalink
Fixed #1995 - Dropdown doesn't display empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Jan 18, 2022
1 parent 6a1bb96 commit 6032532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ export default {
},
label() {
let selectedOption = this.getSelectedOption();
if (selectedOption)
if (selectedOption !== null)
return this.getOptionLabel(selectedOption);
else
return this.placeholder||'p-emptylabel';
Expand Down

0 comments on commit 6032532

Please sign in to comment.