Skip to content

Commit

Permalink
Merge pull request #14625 from Basketblo/issue-14459-listbox-filter-e…
Browse files Browse the repository at this point in the history
…mpty-message

fix #14459 p-listbox empty message for filter
  • Loading branch information
cetincakiroglu authored Mar 19, 2024
2 parents 5ade9ba + 50ffef1 commit af54f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/listbox/listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ export class Listbox implements AfterContentInit, OnInit, ControlValueAccessor,
}

isEmpty() {
return !this._options() || (this._options() && this._options().length === 0);
return !this._options()?.length || !this.visibleOptions()?.length;
}

hasFilter() {
Expand Down

0 comments on commit af54f03

Please sign in to comment.