eakoriakin / ionic-selectable

Ionic Selectable is an Ionic versatile and highly customizable component that serves as a replacement to Ionic Select, and allows to search items, including async search, create items, customize the layout with templates and much more. It provides an intuitive API and is easy to set up and use.
MIT License
550 stars 123 forks source link

Throws error with empty array on v5 #425

Closed Zoratsu closed 1 year ago

Zoratsu commented 1 year ago

I tried to make a stackblitz with minimal code but I found it throws error with ionic-selectable@5.

Error is "ERROR TypeError: ctx.selectComponent._filteredGroups[0] is undefined" if array is given in [items] is empty.

Using Ionic@7 and Angular@16.

Sharing error in case is fixed.