Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature suggested for Dropdown: able to disable Popper's preventOverflow #25529

Closed
mapher87 opened this issue Feb 1, 2018 · 6 comments
Closed

Comments

@mapher87
Copy link

mapher87 commented Feb 1, 2018

Get an issue when using Menu forms with a large form which is supposed to fix itself below the button.
The PreventOverflow feature is good, but we'd disable it in a lot of cases which is impossible when using Dropdown.

Thanks and Best Wishes.

@Johann-S
Copy link
Member

Johann-S commented Feb 1, 2018

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.

@mapher87
Copy link
Author

mapher87 commented Feb 1, 2018

https://codepen.io/anon/pen/QQjKEJ
Click the button several times or scroll up and down, you will see the form reset its position by the preventOverflow feature.

This case use bootstrap 4.0.0 beta3

@Johann-S
Copy link
Member

Johann-S commented Feb 1, 2018

A quick fix would be to add this line on your application :

Popper.Defaults.modifiers.preventOverflow = { enabled: false };

See the result here (with our first stable v4) : https://codepen.io/Johann-S/pen/vdNymv?editors=1010

Side note : not possible to do that if you use bootstrap.bundle.js or bootstrap.bundle.min.js

@mapher87
Copy link
Author

mapher87 commented Feb 2, 2018

As there is an option "data-boundary" to manage the behavior of the preventOverflow, would you like to disable one Dropdown's preventOverflow feature by given false or null?

For example:

<button type="button" data-boundary="false" ...>
  button
</button>

@Johann-S
Copy link
Member

Johann-S commented Feb 2, 2018

They are a PR to disable Popper.js for dropdown : #24092

@mdo
Copy link
Member

mdo commented Apr 13, 2022

Closing as stale for v4. We'll be moving onto focus entirely on v5 and v4 will only see critical updates.

@mdo mdo closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants