Skip to content

Commit

Permalink
refac: floating buttons behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Oct 7, 2024
1 parent fe18aeb commit 1fc1bf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/components/chat/Messages/ContentRenderer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
await tick();
// 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();
Expand Down

0 comments on commit 1fc1bf5

Please sign in to comment.