# How to clear list swipe state after clicking option buttons

**URL:** <https://forum.ionicframework.com/t/how-to-clear-list-swipe-state-after-clicking-option-buttons/13929>\
**Category:** ionic-v1\
**Created:** [December 11, 2014, 10:37am UTC](https://forum.ionicframework.com/t/how-to-clear-list-swipe-state-after-clicking-option-buttons/13929 "2014-12-11T10:37:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![donl](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@donl](https://forum.ionicframework.com/u/donl)\
**Post date:** [December 11, 2014, 10:37am UTC](https://forum.ionicframework.com/t/how-to-clear-list-swipe-state-after-clicking-option-buttons/13929/1 "2014-12-11T10:37:24Z")

</div>

Using option buttons in collection-repeat list, after clicking the option buttons to call some routines, the list swipe state remains unchaged. If the item is deleted, then a new item in the old position is automatically in swiped state. How to clear the swipe state for the selected item to fix that problem?

```
<ion-list can-swipe="true">
    <ion-item class="item my-item"
         collection-repeat="order in orders" 
         collection-item-width="'100%'"
         collection-item-height="60"
         ng-click="edit(order.id)">
        
        <h2>{{order.title}}</h2>

        <ion-option-button class="button-stable" ng-click="delete(order.id)">
            <i class="icon ion-trash-a"></i>
        </ion-option-button>
        <ion-option-button class="button-positive" ng-click="()">
           <i class="icon ion-wand"></i>
        </ion-option-button>
    </ion-item>
</ion-list>

```

I’m using the nightly builds.

---

<div class="post-metadata">

**Author:** ![paulogr](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/paulogr/32/100131_2.png) [@paulogr](https://forum.ionicframework.com/u/paulogr)\
**Post date:** [February 16, 2015, 1:17am UTC](https://forum.ionicframework.com/t/how-to-clear-list-swipe-state-after-clicking-option-buttons/13929/2 "2015-02-16T01:17:20Z")

</div>

I got the same problem here !

I am using a ng-repeat with track by $index and when I remove a item using array.splice($index, 1) the new item is automatically in swiped state as my friend just said.

Anyone has any news about that ?

Thanks !

---

<div class="post-metadata">

**Author:** ![ianpinto\_vamaship](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@ianpinto\_vamaship](https://forum.ionicframework.com/u/ianpinto_vamaship)\
**Post date:** [September 23, 2016, 12:46pm UTC](https://forum.ionicframework.com/t/how-to-clear-list-swipe-state-after-clicking-option-buttons/13929/3 "2016-09-23T12:46:34Z")

</div>

I have the exact same issue.
