fix: position dropdown absolute, not fixed (#1552)

Fixes a regression introduced in 32501bc93b
This commit is contained in:
kolaente
2025-09-28 16:18:25 +02:00
committed by GitHub
parent 48d202f3ce
commit a7eebaffb0
+2 -1
View File
@@ -85,6 +85,7 @@ async function updatePosition() {
const {x, y} = await computePosition(dropdown.value, dropdownMenu.value, {
placement: 'bottom-end',
strategy: 'absolute',
middleware: [
offset(4),
autoPlacement({
@@ -130,7 +131,7 @@ onClickOutside(dropdown, (e) => {
.dropdown-menu {
min-inline-size: 12rem;
position: fixed;
position: absolute;
z-index: 20;
display: block;
}