Skip to content

Commit

Permalink
Merge pull request open-webui#5958 from open-webui/dev
Browse files Browse the repository at this point in the history
refac: floating buttons behaviour
  • Loading branch information
tjbck authored Oct 7, 2024
2 parents bc29d5d + 1fc1bf5 commit 7cebcf0
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 7cebcf0

Please sign in to comment.