Closed AnotiaWang closed 3 months ago
Maybe call the calculatePlacementClasses()
function in useDropdownClasses.ts
when the slot content is changed? Or expose the util function and let users to decide when to refresh the position
Edit: Opened a PR to fix this, please review.
When a dropdown is active and its content changed, the top of content no longer stays right below the dropdown button. In my case, there is a div (with
overflow-y-auto
) that contains many dropdowns. So if the dropdown at the top of the div overflows upwards, the content inside cannot be seen.Example:
Before:![截屏2024-03-15 21 17 45](https://github.com/themesberg/flowbite-vue/assets/62269186/4dd6a26b-7123-4464-a2b9-4a4846409af9)
Same issue when I remove items from the dropdown content.![截屏2024-03-15 21 40 43](https://github.com/themesberg/flowbite-vue/assets/62269186/3b326372-20cb-4b62-ac9e-382b751d70fa)