Popper.js messing up dropdown styles
See original GitHub issueLoving the new popper.js but was wondering if there was a way to disable the custom styles it auto adds to elements?
Its adding the following:
position: absolute;
transform: translate3d(0px, 0px, 0px);
top: 0px;
left: 0px;
will-change: transform;
This in turn overrides some custom animations I am trying to implement, it also messes up alignment if I wanted to put dropddowns in a container. The plugin is great but there must be a way to disable this custom “hardcode” style feature?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:21
- Comments:22 (8 by maintainers)
Top Results From Across the Web
Disable auto placement caused by popper.js - Stack Overflow
I'm working with Bootstrap 4 dropdown and there are about 18 dropdown items. Because the height is too much, popper.js automatically moves ...
Read more >Using usePopper and styled-components to create a practical ...
Backstory. So my team and I are trying to create our own reusable UI component library that's not based on any UI frameworks...
Read more >Popper (v2.×)
Clipping and overflow issues: Pure CSS poppers will not be prevented from overflowing clipping boundaries, such as the viewport. It will get partially...
Read more >Introduction - Bootstrap
Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with jsDelivr and a template starter page.
Read more >Bootstrap Dropdowns -- Tutorials with advanced examples
Be sure to include popper.min.js before Bootstrap's JavaScript or use bootstrap.bundle.min.js / bootstrap.bundle.js which contains Popper. Popper ...
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
You can just turn off the transform placement on Popper to make it only use top/left for positioning instead. Then you can use transform for any animations/transitions as you wish.
my dropdown list was flying all over the document), the problem solved only by turning off the computeStyle