Skip to content

Commit

Permalink
Fix the position of immovable menus on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Nov 21, 2024
1 parent aa047a9 commit 74f1054
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ts/WoltLabSuite/Core/Ui/Dropdown/Simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ function onScroll() {
const menu = _menus.get(dropdown.id) as HTMLElement;
if (!Core.stringToBool(menu.dataset.dropdownIgnorePageScroll || "")) {
UiDropdownSimple.close(containerId);
} else {
UiDropdownSimple.setAlignment(dropdown, _menus.get(containerId)!);
}
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74f1054

Please sign in to comment.