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
126
forks
source link
ionic-selectable in *ngFor not updating current row field value otherwise the last row item value #334
I want to use ionic-selectable inside a table grid, everything works well except that when I want to change the select value it change the last row value instead the row I want to change.
this is my code:
<ng-container *ngFor="let line of quote.lines;index as i">
<tr [ngClass]="i%2==0?'row-even':'row-odd'">
I want to use ionic-selectable inside a table grid, everything works well except that when I want to change the select value it change the last row value instead the row I want to change.
this is my code:
<ng-container *ngFor="let line of quote.lines;index as i"> <tr [ngClass]="i%2==0?'row-even':'row-odd'">
when I debug this method it logs rows 6 instead of row 1 I'm current in:
portChange(i, event: { component: IonicSelectableComponent, value: any }) { console.log('currency code:', i + " - " + event.value); }
Thank you for help.