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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

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;
}