mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
fix: unmount dropdown when parent is removed
This commit is contained in:
parent
67a35723ae
commit
6dba81b3ae
1 changed files with 1 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
return () => {
|
||||
document.removeEventListener("click", handleClickOutside);
|
||||
dropdownRef?.remove();
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue