Skip to content

Commit

Permalink
Fixed #14815 - Dropdown | Selected option not shown while typing in f…
Browse files Browse the repository at this point in the history
…ilter if it has value null, while having selectedItem template
  • Loading branch information
mehmetcetin01140 committed Feb 15, 2024
1 parent 4157578 commit c069c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c069c10

Please sign in to comment.