G
G
Guser112019-03-10 00:49:55
css
Guser11, 2019-03-10 00:49:55

How to disable the static (adaptive) position of the dropdown in Bootstrap4?

Good afternoon everyone!
In bootstrap4 there is such a dropwdown menu:
5c843469b84f2700035360.png
Please tell me how to disable the automatic positioning of this dropdown when scrolling the page.
For example, when I scroll the page to the bottom, this white dropdown box jumps to the top (above the button and not below it)
5c843528174e3704900612.png
How can I turn it off?
data-display="static" doesn't help.
You need this menu to drop down and not move anywhere when you scroll the page.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coderisimo, 2019-03-10
@coderisimo

Have you tried adding position-relative ? and in the button data-boundary=""

<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"  data-boundary="">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question