Bug: track by $index breaks options button in ion-list

I’ve added this issue to GitHub already but for visibility here it is incase someone has raised it already: https://github.com/driftyco/ionic/issues/2722

I added track by $index to an ng-repeat on an ion-item directive.

I then added an options button of “Delete” that when clicked should remove the item from the list. That works however the next item in the list then has it’s options buttons visible.

Please see the following CodePen.

http://codepen.io/gregorypratt/pen/LENBJo

Slide the item to reveal the Delete button, press it and you’ll see the problem. Remove “track by $index” from the repeater and you’ll see the desired behaviour.