I'm using a search input box inside bootstrap dropdown. When I search any value it filters the dropdown to show only filtered dropdown items.
The problem here is when the dropdown position is up and I filter the list, The starting point of dropdown items remains same leaving gap between the dropdown items and the dropdown. But works properly when dropdown is open at bottom position.
When i click on the dropdown button, Bootstrap adds x-placement="top-start" like below and it never updates when i filter the value. I want to update the position so that everytime it starts from dropdown and there is no gap between.
<div class="dropdown show">
<div class="dropdown-menu show"
x-placement="top-start"
style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, -279px, 0px);">
...
</div>
</div>
I have added the codesandbox of the problem
https://stackblitz.com/edit/react-xz1jvq?file=src/App.js
Dropdown after filter leaves space in between. Basically i want to update its position everytime after filter
