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

Search does not change list while typing #422

Closed fortunella closed 1 year ago

fortunella commented 1 year ago

After upgrading to v5.0.0 with Ionic 7 the list of items is not filtered during typing. The list is updated only when I leave the search box. This is a bit confusing. With v4.9.0 and Ionic 6 the list changed after each keypress.

This is my code:

<ionic-selectable name="user" [(ngModel)]="selectedUser" [items]="usersList" [canSearch]="true" 
   [shouldFocusSearchbar]="true" [canClear]="true"
   clearButtonText="Logout" closeButtonSlot="end" (onChange)="checkSecurityCode()"
   itemValueField="value" itemTextField="label">
   <ng-template ionicSelectableCloseButtonTemplate>
      <ion-icon name="close-circle" style="font-size: 24px"></ion-icon>
   </ng-template>
</ionic-selectable>
iamrsojitra commented 1 year ago

Hi @fortunella Greetings for the day!

Thanks for raising an issue. I have fixed the issue.

You can try out version 5.0.1

fortunella commented 1 year ago

Works perfect. Thank your very much.