# Question About Modals?

**URL:** <https://forums.realmacsoftware.com/t/question-about-modals/50992>\
**Category:** Elements\
**Created:** [September 14, 2025, 1:07am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992 "2025-09-14T01:07:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [September 14, 2025, 1:07am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/1 "2025-09-14T01:07:48Z")

</div>

I’m trying to come to grips with what seems to be an anomaly with the Modal component.

I need to place a modal in a precise location, but if I use a FIXED location, some of the default behavior of the Modal no longer works. For example, if you click outside the modal, it is not closed. Why?

Yes, I know the location is FIXED, but that should not have anything to do with closing the modal.

The same is true if I try some of the other location-specific settings.

Could someone please clarify whether this behavior is intended or a bug?

It would be nice to have precise control over the placement, if possible.

---

<div class="post-metadata">

**Author:** ![WeaverPixel](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/weaverpixel/32/25453_2.png) [@WeaverPixel](https://forums.realmacsoftware.com/u/WeaverPixel)\
**Post date:** [September 14, 2025, 8:21am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/2 "2025-09-14T08:21:31Z")

</div>

Hi @handshaper  
I am working on something with modals and saw the same behaviour. Thouht the problem is on my side but if you have also issues, it‘s probably a bug.

In my case when I position my modal to a defined place on the screen, I can close it by clicking outside of the modal on 3 sides (top, bottom and right). Clicking on the left side doesn‘t do anything.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [September 14, 2025, 10:04am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/3 "2025-09-14T10:04:55Z")

</div>

Would you be able to upload a sample project to Elements Cloud? That way, we can take a look and help track down the issue 👍

---

<div class="post-metadata">

**Author:** ![WeaverPixel](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/weaverpixel/32/25453_2.png) [@WeaverPixel](https://forums.realmacsoftware.com/u/WeaverPixel)\
**Post date:** [September 14, 2025, 10:34am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/4 "2025-09-14T10:34:10Z")

</div>

Hi @dan

I send you a separate email with the link, as I do not want to have the project public. By the way, is it correct that I can send you currently no messages via the forum?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [September 14, 2025, 10:49am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/5 "2025-09-14T10:49:20Z")

</div>

> [@WeaverPixel](#):
>
> I send you a separate email with the link

Got the email, thanks!

> [@WeaverPixel](#):
>
> By the way, is it correct that I can send you currently no messages via the forum?

Correct, I’m trying to limit the number of places I need to check, so turning of DM’s works. It’s also better for me to answer questions in public, that way everyone benefits 🙂

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [September 14, 2025, 11:00am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/6 "2025-09-14T11:00:04Z")

</div>

I think you’re seeing issues because your div actually covers the left hand side (see the area highlighted in blue). They’ll be a way to solve this… I just need to have a play and maybe get @ben involved to workout the best solution…

 ![CleanShot 2025-09-14 at 11 .50.16@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/9/0/901de5365b5db99e62e83c9053871baf36004cf3.jpeg)

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [September 14, 2025, 6:38pm UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/7 "2025-09-14T18:38:46Z")

</div>

@dan Here is my sample project that shows the issue I was reporting.

There is a fixed navbar with two hamburger triggers; clicking the LEFT one shows a modal that cannot be removed by clicking outside the modal. This modal has a fixed location. The one on the RIGHT behaves as expected. It doesn’t have a fixed location.

[Modal Testbed](elementsapp://downloadDocument/GGqBQobXLp1n)

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [September 14, 2025, 8:30pm UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/8 "2025-09-14T20:30:43Z")

</div>

Your problem is similar to @WeaverPixel’s - Because of the setting you’ve applied it think the modal div is actually covering the entire screen… I’ll need to dig into this more on Monday with @ben to see if we can build in a workaround for situations like these 👍

 ![CleanShot 2025-09-14 at 9 .28.49@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/2/0/2036ff347f288ed83740ac21c75c4bc8474cbfca.jpeg)

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [September 15, 2025, 7:24am UTC](https://forums.realmacsoftware.com/t/question-about-modals/50992/9 "2025-09-15T07:24:35Z")

</div>

I’ve had a look at this one and it’s a bug in the Modal component. I’ll get this one fixed for the next update 🙂
