refac: floating buttons behaviour

This commit is contained in:
Timothy J. Baek 2024-10-06 22:09:58 -07:00
parent fe18aebdd9
commit 1fc1bf5f0d

View File

@ -27,7 +27,10 @@
await tick(); await tick();
// Check if the event target is within the content container // Check if the event target is within the content container
if (!contentContainerElement?.contains(event.target)) return; if (!contentContainerElement?.contains(event.target)) {
closeFloatingButtons();
return;
}
let selection = window.getSelection(); let selection = window.getSelection();