mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 17:32:52 -05:00
refac
This commit is contained in:
1 parent
1588ce1bfc
commit
4d189c2a94
5 files changed
+514
-48
No files matched your search
@@ -1388,6 +1388,8 @@
|
||||
|
||||
const isAttachmentDrop = (event: DragEvent) => {
|
||||
if (!(event.target instanceof Element)) return false;
|
||||
// Areas with their own file drop, like a folder's Knowledge list, keep what lands on them.
|
||||
if (event.target.closest('[data-file-drop-target]')) return false;
|
||||
const composer = event.target.closest('[data-composer-id]');
|
||||
if (composer) return composer.getAttribute('data-composer-id') === inputId;
|
||||
// Files can land anywhere in this chat's dropzone. Sidebar items still target
|
||||
|
||||
Reference in new issue
Block a user