# Dialog modal close not working

**URL:** <https://community.weweb.io/t/dialog-modal-close-not-working/17462>\
**Category:** How do I?\
**Created:** [March 26, 2025, 4:24pm UTC](https://community.weweb.io/t/dialog-modal-close-not-working/17462 "2025-03-26T16:24:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben10](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Ben10](https://community.weweb.io/u/Ben10)\
**Post date:** [March 26, 2025, 4:24pm UTC](https://community.weweb.io/t/dialog-modal-close-not-working/17462/1 "2025-03-26T16:24:01Z")

</div>

I am not able to set a closing workflow for my dialog modal.  
The screenshot shows one click on the x of the modal where I set up the workflow for closing the dialog.  
But it keeps on opening it straight after that again.  
What am I missing?

 ![Screenshot 2025-03-26 171900](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/0247e555fac73e75ac23a06b6c0d70dbdeb346e4.png)

---

<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:** [March 26, 2025, 9:25pm UTC](https://community.weweb.io/t/dialog-modal-close-not-working/17462/2 "2025-03-26T21:25:34Z")

</div>

You probably have a workflow somewhere that gets triggered which opens your modal right when it closes. Have a look for it.

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [March 26, 2025, 9:50pm UTC](https://community.weweb.io/t/dialog-modal-close-not-working/17462/3 "2025-03-26T21:50:28Z")

</div>

this may sound stupid but try removing the close in the workflow, the pre built modal I think auto closes when you click there X but I think the might use toggle so you close with your workflow then the weweb modal toggles and opens itself.

---

<div class="post-metadata">

**Author:** ![Ben10](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Ben10](https://community.weweb.io/u/Ben10)\
**Post date:** [March 27, 2025, 11:09am UTC](https://community.weweb.io/t/dialog-modal-close-not-working/17462/4 "2025-03-27T11:09:20Z")

</div>

Thank you both - I cannot find any other workflow that affects the open behavior.  
Same thing happens on backdrop click.  
If I disable the close workflow - nothing happens on click.  
Really strange.

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [March 27, 2025, 8:33pm UTC](https://community.weweb.io/t/dialog-modal-close-not-working/17462/5 "2025-03-27T20:33:12Z")

</div>

maybe try messing with trigger click opens and overlay click closes

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e61ed012babf4c60f7261835e28631bd34880f98.png)

---

<div class="post-metadata">

**Author:** ![Ben10](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Ben10](https://community.weweb.io/u/Ben10)\
**Post date:** [March 28, 2025, 10:07am UTC](https://community.weweb.io/t/dialog-modal-close-not-working/17462/6 "2025-03-28T10:07:00Z")

</div>

Thank you – I got it to work. I had to remove the open dialog workflow from the trigger and open the modal using its own “trigger clicks open” function. Unfortunately, I’m losing my workflow this way, but at least it closes now! 🙂
