mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Merge pull request #5958 from open-webui/dev
refac: floating buttons behaviour
This commit is contained in:
commit
7cebcf064a
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue