# Using Popups in Modals

**URL:** <https://forum.ionicframework.com/t/using-popups-in-modals/2010>\
**Category:** ionic-v1\
**Created:** [March 19, 2014, 1:45pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010 "2014-03-19T13:45:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangeross](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dangeross](https://forum.ionicframework.com/u/dangeross)\
**Post date:** [March 19, 2014, 1:45pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/1 "2014-03-19T13:45:12Z")

</div>

Hi there,

Can someone point me in the right direction, I am trying to display a $ionicPopup over a $ionicModal. So the modal is open and the user needs to select an item from a list in a popup. But it looks like the modal still has focus even tho the popup is over it.

I have I feeling it might be an issue with z-index’s and/or translate3d(0px, 0px, 0px)

Codepen: [http://codepen.io/dangeross/pen/wvAjJ/](http://codepen.io/dangeross/pen/wvAjJ/)

Would very much appreciate some help,  
Thanks, Ross

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [March 19, 2014, 2:23pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/2 "2014-03-19T14:23:59Z")

</div>

hmm, odd. I just made an issue an I’m looking into it: [https://github.com/driftyco/ionic/issues/838](https://github.com/driftyco/ionic/issues/838)

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [March 19, 2014, 3:57pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/3 "2014-03-19T15:57:45Z")

</div>

Adam just fixed it. Thanks!

---

<div class="post-metadata">

**Author:** ![adam](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/adam/32/63947_2.png) [@adam](https://forum.ionicframework.com/u/adam)\
**Post date:** [March 19, 2014, 4:06pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/4 "2014-03-19T16:06:59Z")

</div>

This should be fixed now in the nightly build:

> <https://github.com/ionic-team/ionic/commit/6ebfe776bcca506e2168756b69e4823199c70c43>

It’s because .modal-open was added to the body class also, and that disables all pointer-events except the .modal, which is a good thing for tap stuff so inputs weren’t clicked which are under the modal. It’s also used so other buttons can’t get clicked in the grayed out area of a actionsheet or popup.

Thanks for reporting it.

---

<div class="post-metadata">

**Author:** ![dangeross](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dangeross](https://forum.ionicframework.com/u/dangeross)\
**Post date:** [March 19, 2014, 5:14pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/5 "2014-03-19T17:14:53Z")

</div>

Wow. Awesome. Thanks for the quick response guys!

---

<div class="post-metadata">

**Author:** ![mitchellvanw](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mitchellvanw](https://forum.ionicframework.com/u/mitchellvanw)\
**Post date:** [May 29, 2014, 5:33pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/6 "2014-05-29T17:33:03Z")

</div>

I’ve noticed that when I use a `popup` in a `modal` the `backdrop` doesn’t appear over the modal. Probably because it was already activated by the modal.

Do you have a solution to have this backdrop for my popup in a modal?

---

<div class="post-metadata">

**Author:** ![ctaepper](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@ctaepper](https://forum.ionicframework.com/u/ctaepper)\
**Post date:** [June 5, 2014, 10:26am UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/7 "2014-06-05T10:26:26Z")

</div>

> [@mitchellvanw](#):
>
> I’ve noticed that when I use a `popup` in a `modal` the `backdrop` doesn’t appear over the modal. Probably because it was already activated by the modal.
> 
> Do you have a solution to have this backdrop for my popup in a modal?

having the same problem… any help is appreciated

---

<div class="post-metadata">

**Author:** ![ctaepper](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@ctaepper](https://forum.ionicframework.com/u/ctaepper)\
**Post date:** [June 5, 2014, 11:12am UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/8 "2014-06-05T11:12:11Z")

</div>

`.popup-open .backdrop {
z-index: 11;
}
`

putting this in css helps, but i think it should be done by default

---

<div class="post-metadata">

**Author:** ![ctaepper](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@ctaepper](https://forum.ionicframework.com/u/ctaepper)\
**Post date:** [June 6, 2014, 8:31am UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/9 "2014-06-06T08:31:59Z")

</div>

the same problem exists when i have a modal open and then show ionicLoading… the backdrop shoudl overlay the modal, but it doesnt… and as ionicLaoding doesnt add a css class to body, i cant workaround… i guess i just open a github issue to get more attention

---

<div class="post-metadata">

**Author:** ![jbarbede](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jbarbede](https://forum.ionicframework.com/u/jbarbede)\
**Post date:** [July 22, 2014, 4:15pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/10 "2014-07-22T16:15:28Z")

</div>

We have the same problem with some Facebook dialogs (Facebook share) loaded on top of a modal.

Till now we applied a similar fix to yours @adam but any modal/dialog/popup on top a modal will be affected. Maybe we can find another way to deal with that.

---

<div class="post-metadata">

**Author:** ![dimmetrius](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dimmetrius](https://forum.ionicframework.com/u/dimmetrius)\
**Post date:** [November 25, 2014, 12:13pm UTC](https://forum.ionicframework.com/t/using-popups-in-modals/2010/11 "2014-11-25T12:13:41Z")

</div>

Hello i have the similar problem with popup and list in it

> **[List inside the popup scrolling](http://forum.ionicframework.com/t/list-inside-the-popup-scrolling/13176)**
>
> Hello. I need the list inside popup? but there are scrolling bug. how to fix it?

can someone help?
