Can't Set Popper Modifiers for Popover
See original GitHub issueIssue description
- components:
popover
- reactstrap version
5.0.0-alpha.4
- import method
es
(if umd, are you using the “full” version (only for v5+)?) - react version
#16.1.1
- bootstrap version
not installed
What is happening?
When using popover like this:
<Popover
className="PopOver"
isOpen={props.isOpen}
target={props.target}
placement={props.placement}
toggle={props.toggle}
modifiers={{flip: {enabled: false}}}>
{props.children}
</Popover>
seems like modifiers
object is ignored. Popper still gets its
modifiers: {
flip: {
behavior: "flip"
enabled: true
}
...
}
props object.
What should be happening?
I think the props.modifiers.flip.enabled
prop of Popper
should be false
.
Steps to reproduce issue
Just render the <Popover>
like I described and check if the Popper get correct prop.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Modifiers - Popper
Custom Modifiers. It is possible to add custom modifiers, written by you, by defining them in the options.modifiers array during a Popper instantation....
Read more >MUI Popper: Placement not working as intended when using ...
So if some ancestor has any overflow property set, and the Popper content can't be adjusted into it then the Popper won't position...
Read more >Popovers · Bootstrap v5.0
Overflow constraint boundary of the popover (applies only to Popper's preventOverflow modifier). By default it's 'clippingParents' and can accept an HTMLElement ...
Read more >React Popper component - Material UI - MUI
The scroll isn't blocked like with the Popover component. The placement of the popper updates with the available area in the viewport.
Read more >Documentation (v2.x) | Popper
Popper is the de facto standard to position tooltips and popovers in ... No virtual positioning: CSS tooltips cannot follow the mouse cursor...
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 Free
Top 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
Yes, I confirm that the issue is resolved.
I don’t think #710 (which add the ability to pass modifiers which override the default ones (such as flip)) has been released yet.