mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
refac: floating buttons behaviour
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user