fixed typo and cleanup destroyed overlay wrappers

This commit is contained in:
Gani Georgiev
2024-11-18 08:23:39 +02:00
parent 14aaeb06fc
commit 487e83c84e
30 changed files with 41 additions and 45 deletions
+3 -7
View File
@@ -199,18 +199,14 @@
// move outside of its current parent
getHolder().appendChild(wrapper);
let wrapperCopy = wrapper;
return () => {
clearTimeout(contentScrollThrottle);
unregisterActivePanel();
// ensures that no artifacts remains
// (currently there is a bug with svelte transition)
wrapper?.classList?.add("hidden");
setTimeout(() => {
wrapper?.remove();
}, 0);
wrapperCopy?.remove();
};
});
</script>