Fixed #1995 - Dropdown doesn't display empty string

pull/2018/head
Tuğçe Küçükoğlu 2022-01-18 13:10:57 +03:00 committed by Tuğçe Küçükoğlu
parent 6a1bb96376
commit 6032532358
1 changed files with 1 additions and 1 deletions

View File

@ -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';