From 8e77cc85cda0e498ddee733d272c20c1d3da3f35 Mon Sep 17 00:00:00 2001 From: Tal Ladi Date: Sat, 27 Apr 2024 03:30:46 +0300 Subject: [PATCH] Fix #14954 Dropdown head is empty when no selected option provided --- src/app/components/dropdown/dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index cd92bbc78be..9a364886d61 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -154,7 +154,7 @@ export class DropdownItem { {{ label() === 'p-emptylabel' ? ' ' : label() }} - {{ label() === 'p-emptylabel' ? ' ' : placeholder() }} + {{ label() === 'p-emptylabel' ? ' ' : displayPlaceholder() ? placeholder() : label() }}