question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Popper is not always first, hides behind other element

See original GitHub issue

Hello. My implementation of ngx-popper doesn’t always put the popper as the front html element.

image

My markup: <a *ngIf="fieldValue.field.description?.length > 0" [popper]="fieldValue.field.description" [popperTrigger]="'hover'" [popperPlacement]="'auto-top'" href="javascript:void(0)" class="tooltip-icon text-left" > <sup> <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> </sup> </a>

I have a custom css hook for the container element aswell. Maybe this is causing the issue?

.ngxp__container { text-align: left; opacity: 1 !important; background-color: #656d79; text-align: left; padding: 15px !important; max-width: 300px; font-size: 12px; line-height: 20px; border-radius: 5px !important; color: white; border: 1px solid #656d79 !important; border-bottom: 3px solid #434a54 !important; }

How can I fix this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
frikkfossancommented, Sep 6, 2017

That worked great! added these styles: .ngxp__container { … position: relative; z-index: 999; }

z-index = 999 to be sure that 99% of all times it should render on top of all other elements.

2reactions
MrFrankelcommented, Sep 6, 2017

Have you tried giving the container position: relative and a higher z-index?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Popper.js wrong initial position of dropdown/tooltip
You are initializing Popper.js when the element is hidden, and then you toggle its visibility to show it, but Popper.js doesn't know that ......
Read more >
Everything I Know About Positioning Poppers (Tooltips ...
The popper can appear "detached" from the reference element, or attached to nothing at all if the reference element is fully clipped and...
Read more >
Hide
Hide. The hide modifier lets you hide the popper if it appears to be detached from its reference element, or attached to nothing...
Read more >
Popper vs. Floating UI
Learn how Popper compares to Floating UI when choosing which tool to use when positioning floating elements.
Read more >
Dropdowns · Bootstrap
Popper.js isn't used to position dropdowns in navbars though as dynamic ... menu within .dropdown , or another element that declares position: relative;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found