Skip to content

Commit

Permalink
fix: primefaces#14459 listbox empty message for filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatolii committed Jan 24, 2024
1 parent f305b27 commit 50ffef1
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 @@ -1411,7 +1411,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 50ffef1

Please sign in to comment.