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.

Popover in a Select.Option appear with a wrong position

See original GitHub issue

https://riddle.alibaba-inc.com/riddles/5c8662c1

background

use popover to make a preview of every option in select

what’s wrong

if set getPopupContainer={(node) => node.parentElement} to popover, it will appear with a wrong position, looks like image

if not set, z-index is not correct image

what’s expected

popover in a option works well

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

11reactions
afc163commented, Mar 9, 2018

Nothing we can do if you try to render a popup node inside a container with overflow which don’t have enough visible area to show the popup.

0reactions
jaredleechncommented, Mar 9, 2018

Any solution about other popover-like component if they need to render under their parent component? The Popover and Select.Option just a temporary hack, once met the situation of position: relative and overflow, popover-like components always appear in wrong position

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap Popover appearing in wrong position - Stack Overflow
When a select input is changed 3 Popovers need to appear/change. Two of these popovers work properly. The third however appears at the...
Read more >
Popovers - Bootstrap
Appends the popover to a specific element. Example: container: 'body' . This option is particularly useful in that it allows you to position...
Read more >
Popover - Chakra UI
When the popover is closed, focus returns to the trigger. If you set returnFocusOnClose to false , focus will not return. If trigger...
Read more >
Popover | Components - BootstrapVue
Twelve options are available for positioning: top , topleft , topright , right ... disabled, false, Programmatic control of the Popover display state....
Read more >
Overlays | React-Bootstrap
The <Tooltip> and <Popover> components do not position themselves. ... set of popper options and props passed directly to Popper. rootClose. boolean. false....
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