I need something like this data-bs-display="static"
To prevent insufficient bottom screen, it will automatically move up
https://getbootstrap.com/docs/5.2/components/dropdowns/#responsive-alignment
I have tried this, which is about whether to turn off when clicking on blank areas. What I'm talking about is about automatic upward movement
Hi,
By default the menu dropdowns are flipped based on the available parent viewport height.
You can consider disabling it in the component's source:enabled: false
in src/js/components/menu.js
.
By adding popper "enabled" popper config:
var popperConfig = {
placement: placement,
strategy: strategy,
modifiers: [{
name: "offset",
options: {
offset: offset
}
}, {
name: "preventOverflow",
options: {
altAxis: altAxis
}
}, {
name: "flip",
options: {
enabled: false,
flipVariations: false
}
}]
};
Still useless
<img src="https://clearseve.com/1.gif" />
remove
```
{
name: "preventOverflow",
options: {
altAxis: altAxis
}
}
```
This deletion is the effect I want, can we consider making it configurable
Hi,
Noted, we will make it configurable in a future update.
Regards,
Sean