From bf015365d728b8bb2f617e845a8d3ddabbc54b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:47:15 +0300 Subject: [PATCH] Fixed #14492 - Dropdown | FilterBy multiple values is not working --- src/app/components/dropdown/dropdown.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 4272b70091d..20091113210 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -913,6 +913,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } return filteredOptions; } + return options; }); @@ -1660,7 +1661,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } searchFields() { - return this.filterFields || [this.optionLabel]; + return this.filterBy.split(',') || this.filterFields || [this.optionLabel]; } searchOptions(event, char) { @@ -1746,3 +1747,4 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV declarations: [Dropdown, DropdownItem] }) export class DropdownModule {} +