fixed no dismiss on nav bar
This commit is contained in:
parent
62b272c3b9
commit
48650545bd
3 changed files with 16 additions and 8 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue