Popover in a Select.Option appear with a wrong position
See original GitHub issuehttps://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
if not set, z-index is not correct
what’s expected
popover in a option works well
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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
andoverflow
, popover-like components always appear in wrong position