# Ion-option close when clicking away

**URL:** <https://forum.ionicframework.com/t/ion-option-close-when-clicking-away/5296>\
**Category:** ionic-v1\
**Created:** [June 6, 2014, 3:09pm UTC](https://forum.ionicframework.com/t/ion-option-close-when-clicking-away/5296 "2014-06-06T15:09:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgeurts](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@ericgeurts](https://forum.ionicframework.com/u/ericgeurts)\
**Post date:** [June 6, 2014, 3:09pm UTC](https://forum.ionicframework.com/t/ion-option-close-when-clicking-away/5296/1 "2014-06-06T15:09:03Z")

</div>

I would like to close my ion-option when a use taps/clicks away - now you have to swipe it back or click on another item.

I found `$ionicListDelegate` has a `closeOptionButtons()` function. Anyone has a good idea of how to implements this?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 6, 2014, 3:12pm UTC](https://forum.ionicframework.com/t/ion-option-close-when-clicking-away/5296/2 "2014-06-06T15:12:33Z")

</div>

Yup, check this out

> **[List: Close on scroll](https://codepen.io/mhartington/pen/gzrvL)**
>
> An Ionic list directive Forked from \[Ionic\](/ionic)'s Pen \[List: 1.0.0-beta.6\](/ionic/pen/JsHjf/)....

---

<div class="post-metadata">

**Author:** ![ericgeurts](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@ericgeurts](https://forum.ionicframework.com/u/ericgeurts)\
**Post date:** [June 6, 2014, 3:48pm UTC](https://forum.ionicframework.com/t/ion-option-close-when-clicking-away/5296/3 "2014-06-06T15:48:13Z")

</div>

Thank you! It works now.
