From 74a1c2da60f08b50f780942eac690baee9083f87 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Sat, 27 Jan 2024 10:16:18 -0500 Subject: [PATCH 1/2] Only show selectedItemTemplate when selectedOption is truthy --- 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 c1bd64f3bf7..ff01d62dfb2 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -149,7 +149,7 @@ export class DropdownItem { [attr.required]="required" > {{ label() === 'p-emptylabel' ? ' ' : label() }} - + {{ label() === 'p-emptylabel' ? ' ' : placeholder }} From e9277aed8c1b3f268586dddba3d46e9dcf47f0b0 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Sat, 27 Jan 2024 10:17:04 -0500 Subject: [PATCH 2/2] Make sure to access modelValue signal as function call inside of the template --- 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 ff01d62dfb2..c5755ccf9d7 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -151,7 +151,7 @@ export class DropdownItem { {{ label() === 'p-emptylabel' ? ' ' : label() }} - {{ label() === 'p-emptylabel' ? ' ' : placeholder }} + {{ label() === 'p-emptylabel' ? ' ' : placeholder }}