Skip to content

Commit

Permalink
Merge pull request #14096 from ashikjs/issues-14057/multiSelect-filte…
Browse files Browse the repository at this point in the history
…r-empty-message-not-show

fix: #14057 || MultiSelect Empty Filter Message / Template is not working when you have options
  • Loading branch information
cetincakiroglu committed Nov 22, 2023
2 parents a539ed5 + cb08919 commit ae2cc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft
}

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

getOptionIndex(index, scrollerOptions) {
Expand Down

1 comment on commit ae2cc95

@vercel
Copy link

@vercel vercel bot commented on ae2cc95 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.