From 1df98b1d6aeed08798c3551052fb61e5ff5cf40f Mon Sep 17 00:00:00 2001 From: Mateusz Pacholec Date: Wed, 20 Dec 2023 08:54:43 +0100 Subject: [PATCH] fix isEmpty checking for dropdown component when using filters (similar to #14057) --- 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 7464bf5c599..857d85e916c 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1187,7 +1187,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } isEmpty() { - return !this._options() || (this._options() && this._options().length === 0); + return !this._options() || (this.visibleOptions() && this.visibleOptions().length === 0); } onEditableInput(event: KeyboardEvent) {