See https://www.woltlab.com/community/thread/308886-dropdownignorepagescroll-bei-uisearchinput-l%C3%A4sst-dropdown-mit-ergebnissen-mitscr/
const menu = _menus.get(dropdown.id) as HTMLElement;
if (!Core.stringToBool(menu.dataset.dropdownIgnorePageScroll || "")) {
UiDropdownSimple.close(containerId);
+ } else {
+ UiDropdownSimple.setAlignment(dropdown, _menus.get(containerId)!);
}
}
}
if (!Core.stringToBool(menu.dataset.dropdownIgnorePageScroll || "")) {
UiDropdownSimple.close(containerId);
}
+ else {
+ UiDropdownSimple.setAlignment(dropdown, _menus.get(containerId));
+ }
}
}
});