Setting popperConfig on Dropdown Menu has no effect
See original GitHub issueDescribe the bug
When adding a popperConfig
property to the Dropdown.Menu
component the configurations are not visible on the rendered element.
To Reproduce
Steps to reproduce the behavior:
npx create-react-app sandbox
yarn add react-bootstrap@1.0.0
- Use a
Dropdown.Menu
component and set thepopperConfig
property
Reproducible Example
Working example can be viewed on CodeSandbox.
Expected behavior
Dropdown.Menu
applies the configuration set by the popperConfig
property.
Screenshots
Environment (please complete the following information)
- Windows 10 / macOS 10.15
- Chrome Version 80.0.3987.163 (Official Build) (64-bit)
- React-Bootstrap 1.0.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (3 by maintainers)
Top Results From Across the Web
React Bootstrap OverlayTrigger change popperConfig offset ...
The only workaround would be to disable popper on the dropdown all together and just generate pure css but cannot seem to be...
Read more >Dropdowns · Bootstrap v5.0
Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They're made interactive with the included Bootstrap dropdown JavaScript ...
Read more >Overlays | React-Bootstrap
It's included automatically with React-Bootstrap, but you should reference the API for more advanced use cases. The <Tooltip> and <Popover> components do not...
Read more >How To Create a Hoverable Dropdown Menu - W3Schools
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP,...
Read more >Modifiers - Popper
effect · The eventListeners modifier uses this to add and remove window / document event listeners which is not part of the main...
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
Upstream now includes the offset modifier, not sure when that happened…
@kit-scalyr no that won’t work, the format for modifiers is wrong, it needs to be an array, check the popper v2 documentation
I’m trying to do exactly this. I’m using version 1.6.1 and offset modifier does not offset the dropdown menu. Could you please elaborate on how this issue was resolved?