# Close modal when clicking on overlay \[SOLVED\]

**URL:** <https://community.weweb.io/t/close-modal-when-clicking-on-overlay-solved/1626>\
**Category:** Ask us anything\
**Created:** [December 20, 2022, 10:09pm UTC](https://community.weweb.io/t/close-modal-when-clicking-on-overlay-solved/1626 "2022-12-20T22:09:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [December 20, 2022, 10:09pm UTC](https://community.weweb.io/t/close-modal-when-clicking-on-overlay-solved/1626/1 "2022-12-20T22:09:13Z")

</div>

How can a modal be closed when someone clicks on the overlay?

---

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [December 20, 2022, 10:10pm UTC](https://community.weweb.io/t/close-modal-when-clicking-on-overlay-solved/1626/2 "2022-12-20T22:10:22Z")

</div>

Found it: In the workflow there is an option for On Background click"
