From c069c10f434eee8799b8e90eb30ba14c202a1de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:17:47 +0300 Subject: [PATCH] Fixed #14815 - Dropdown | Selected option not shown while typing in filter if it has value null, while having selectedItem 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 64a525a0cae..a2b160b4042 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -974,7 +974,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } } - if (ObjectUtils.isEmpty(visibleOptions) && (modelValue === undefined || modelValue === null) && ObjectUtils.isNotEmpty(this.selectedOption)) { + if (ObjectUtils.isEmpty(visibleOptions) && (modelValue === undefined || modelValue === null) && ObjectUtils.isNotEmpty(this.selectedOption) && !this._filterValue()) { this.selectedOption = null; }