Topic: Dropdown Misalignment During Page Scroll
Salman Ali
pro premium asked 2 months ago
Issue 1: Dropdown Positioning During ScrollProblem: The dropdown menu moves upward with the page scroll, detaching from its parent element in the table header. The appendToBody property doesn't appear to be working as expected in this scenario.
Expected Behavior: The dropdown should either:
Remain fixed to its trigger position (not scroll with the page), or
Properly append to the body and maintain correct positioning during scroll
Issue 2: mdb-select Options Positioning Problem: When using the mdb-select component, the dropdown options list doesn't maintain proper positioning relative to the selector during page scroll.
Expected Behavior: The select options should either:
Track with the selector element during scrolling, or
Maintain fixed positioning relative to the viewport if using body-appended mode
![Image for issue 1][1]
![Image for issue 2][1]
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB5 8.0.0
- Device: Laptop
- Browser: Google
- OS: Windows
- Provided sample code: No
- Provided link: Yes
Arkadiusz Idzikowski staff commented 2 months ago
Could you please provide an example code and more information about reproduction steps that would help us to recreate such a problem on our end? We checked both dropdown and select menus during scroll but we could not reproduce scenario where the menu is disconnected from the input/trigger.
Salman Ali pro premium commented 3 weeks ago
Issue: Dropdown Menu Not Repositioning with Scroll
Description:
We’re encountering a UI issue where the dropdown menu (both in mdbDropdown and mdb-select) does not stay aligned with its trigger element when the page is scrolled. This is particularly noticeable in scrollable containers or long pages. Instead of moving along with the trigger, when it reaches the top of the table dense menu, align itself to the right of the table instead of closing, leading to a misalignment between the toggle button and the dropdown options.
Example:https://usercontent.mdbootstrap.com/mdb-images/support/464fd8a1-4620-452a-8f05-b3b7ade40c51-dropdown.jpg
Code
point 2 MDB dropdown options are not moving with the scroll
Example:https://usercontent.mdbootstrap.com/mdb-images/support/8e02155f-d530-4771-8f35-35081fd2f6c9-dropdown2.jpg
Code
Arkadiusz Idzikowski staff commented 2 weeks ago
We tested both components on our end but we could not find any bugs in the dropdown position updates.
Could you please edit your first post and provide a full HTML/TS code on which we will be able to reproduce those problems? It seems like you use those components inside a table/container and we would need to better understand this use case to reproduce this bug on our end.