# Unfocus action?

**URL:** <https://discuss.hotwired.dev/t/unfocus-action/680>\
**Category:** General\
**Created:** [February 23, 2019, 3:04pm UTC](https://discuss.hotwired.dev/t/unfocus-action/680 "2019-02-23T15:04:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![randohinn](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/randohinn/32/209_2.png) [@randohinn](https://discuss.hotwired.dev/u/randohinn)\
**Post date:** [February 23, 2019, 3:04pm UTC](https://discuss.hotwired.dev/t/unfocus-action/680/1 "2019-02-23T15:04:14Z")

</div>

Can I listen to a unfocus action? Just saying `data-action="unfocus->XYZ#ABC"` has no effect

EDIT: `change` does the same thing

---

<div class="post-metadata">

**Author:** ![pascallaliberte](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/pascallaliberte/32/18_2.png) [@pascallaliberte](https://discuss.hotwired.dev/u/pascallaliberte)\
**Post date:** [February 23, 2019, 4:48pm UTC](https://discuss.hotwired.dev/t/unfocus-action/680/2 "2019-02-23T16:48:52Z")

</div>

Have you tried the `blur` event? That event fires when a field loses input focus.

> **[blur](https://developer.mozilla.org/en-US/docs/Web/Events/blur)**
>
> The blur event fires when an element has lost focus. The main difference between this event and focusout is that only the latter bubbles.
