# Is there an on leave focus or click somewhere

**URL:** <https://community.weweb.io/t/is-there-an-on-leave-focus-or-click-somewhere/15172>\
**Category:** Ask us anything\
**Created:** [December 28, 2024, 4:22pm UTC](https://community.weweb.io/t/is-there-an-on-leave-focus-or-click-somewhere/15172 "2024-12-28T16:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yma](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@yma](https://community.weweb.io/u/yma)\
**Post date:** [December 28, 2024, 4:22pm UTC](https://community.weweb.io/t/is-there-an-on-leave-focus-or-click-somewhere/15172/1 "2024-12-28T16:22:12Z")

</div>

So I have drop down and I am using on mouse leave but its not feasible all the time and I’d like to trigger if I click out of the dropdown container

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [December 28, 2024, 4:47pm UTC](https://community.weweb.io/t/is-there-an-on-leave-focus-or-click-somewhere/15172/2 "2024-12-28T16:47:25Z")

</div>

Currently it’s only possible with Custom JavaScript, or some weird workarounds. I have a Private Custom Coded component for example that I use for this purpose.
