Skip to content

Commit

Permalink
fix: unmount dropdown when parent is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
decaf-dev committed Sep 13, 2024
1 parent 67a3572 commit 6dba81b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/svelte/shared/components/search-select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
return () => {
document.removeEventListener("click", handleClickOutside);
dropdownRef?.remove();
};
});
Expand Down

0 comments on commit 6dba81b

Please sign in to comment.