Merge pull request #5958 from open-webui/dev

refac: floating buttons behaviour
This commit is contained in:
Timothy Jaeryang Baek 2024-10-07 07:10:54 +02:00 committed by GitHub
commit 7cebcf064a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();