# Popover fails to render

**URL:** <https://forum.ionicframework.com/t/popover-fails-to-render/10848>\
**Category:** uncategorized\
**Created:** [October 8, 2014, 8:24pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848 "2014-10-08T20:24:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![eno](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eno/32/64977_2.png) [@eno](https://forum.ionicframework.com/u/eno)\
**Post date:** [October 8, 2014, 8:24pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/1 "2014-10-08T20:24:15Z")

</div>

Ive literally copy and pasted code from the popover docs into my controller and have a button call the `show()` method for a popover. I see a backdrop dim the existing page but the popover fails to render. Examining elements in Chrome, I see that the popover div is there but seems to invisible.

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [October 8, 2014, 10:51pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/2 "2014-10-08T22:51:53Z")

</div>

I’ve got an open issue on this : [https://github.com/driftyco/ionic/issues/2343](https://github.com/driftyco/ionic/issues/2343)

For me, I’ve temporarily fixed it with this:

```auto
.popover.active {
    opacity: 1;
}

```

---

<div class="post-metadata">

**Author:** ![siddhartha](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@siddhartha](https://forum.ionicframework.com/u/siddhartha)\
**Post date:** [October 9, 2014, 6:15am UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/3 "2014-10-09T06:15:41Z")

</div>

It is not an issue. How can you open an issue when we are not able to reproduce it?  
Yes I agree docs on popover are really bad! But the issue is with docs and not with the code or component.

---

<div class="post-metadata">

**Author:** ![eno](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eno/32/64977_2.png) [@eno](https://forum.ionicframework.com/u/eno)\
**Post date:** [October 9, 2014, 4:06pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/4 "2014-10-09T16:06:13Z")

</div>

Code that works but fails to render **is** a bug in my book. Now it might be a CSS bug but the end result is the same. I can examine my web page and I can see the HTML in the page. I see the backdrop dimming and I can see the popover-open attribute appear, but it renders as if its invisible. FWIW, I rendering this in a project that also has a sidemenu - could that have something to do with it? Did you try to reproduce with a sidemenu project?

---

<div class="post-metadata">

**Author:** ![siddhartha](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@siddhartha](https://forum.ionicframework.com/u/siddhartha)\
**Post date:** [October 10, 2014, 5:59am UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/5 "2014-10-10T05:59:16Z")

</div>

I use popovers and I don’t have any problem with it. It renders even with a side menu. If you share your code it will be really helpful to see the problem

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [October 27, 2014, 12:24pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/6 "2014-10-27T12:24:54Z")

</div>

Take a look at the github issue posted in the first response. It shows code samples where popups do not work.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [October 27, 2014, 5:07pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/7 "2014-10-27T17:07:37Z")

</div>

Just posted this on the GH issue, but you need to pass `$event` in the click-handler.

> **[Ionic Popovers Don't Work in Ion-content](https://codepen.io/mhartington/pen/LgdsD)**
>
> Forked from \[Justin Noel\](http://codepen.io/calendee/)'s Pen \[Ionic Popovers Don't Work in Ion-content\](http://codepen.io/calendee/pen/vlADg/)....

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [November 7, 2014, 11:38am UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/8 "2014-11-07T11:38:57Z")

</div>

Hey @eno : Mike is right here. The issue was with my code sample. Are you still having the trouble?

---

<div class="post-metadata">

**Author:** ![eno](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eno/32/64977_2.png) [@eno](https://forum.ionicframework.com/u/eno)\
**Post date:** [November 7, 2014, 7:14pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/9 "2014-11-07T19:14:54Z")

</div>

I decided not to use the popover - Im now using a modal instead.

---

<div class="post-metadata">

**Author:** ![beetaa](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@beetaa](https://forum.ionicframework.com/u/beetaa)\
**Post date:** [December 19, 2014, 9:51am UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/10 "2014-12-19T09:51:03Z")

</div>

There’s another condition will trick the same bug: if you have defined an CSS class name “ **none** ” in your own, and let the “ **display** ” attribute with value “ **none** ”, you will get this headache tricky bug, just like this:

```

.none {
  display: none;
}

```

why? because ionic will automatically add a “ **none** ” class in the “ **ion-popover-view** ” tag.

---

<div class="post-metadata">

**Author:** ![adlucio](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/adlucio/32/66791_2.png) [@adlucio](https://forum.ionicframework.com/u/adlucio)\
**Post date:** [January 14, 2015, 8:32pm UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/11 "2015-01-14T20:32:40Z")

</div>

I am trayng to use popover and i have anather problem, inside a popover template i’m loading use data with ng-reload. But while template is loading i can’t see data inside [it.Is](http://it.Is) possibile to do that?  
tanks

---

<div class="post-metadata">

**Author:** ![JeffTian](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jefftian/32/78233_2.png) [@JeffTian](https://forum.ionicframework.com/u/JeffTian)\
**Post date:** [April 7, 2015, 9:17am UTC](https://forum.ionicframework.com/t/popover-fails-to-render/10848/12 "2015-04-07T09:17:26Z")

</div>

Thank you this fixed my issue too
