fixed no dismiss on nav bar

This commit is contained in:
Xanazf 2024-10-17 22:38:55 +03:00
parent 62b272c3b9
commit 48650545bd
No known key found for this signature in database
GPG key ID: 4E4A5AD1FB748427
3 changed files with 16 additions and 8 deletions

View file

@ -47,7 +47,6 @@ const TableOfContents: Component<TOCProps> = props => {
});
createEffect(() => {
const tocRoot = document.getElementById("toc")!;
if (open()) {
window.addEventListener("click", handleClickOutside);
document.body.style.overflow = "hidden";