mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-24 10:51:03 -08:00
fix error in dragdrop logic
This commit is contained in:
parent
ee65e72931
commit
cc2f6e3b7b
1 changed files with 2 additions and 2 deletions
4
javascript/dragdrop.js
vendored
4
javascript/dragdrop.js
vendored
|
|
@ -57,8 +57,8 @@ function eventHasFiles(e) {
|
|||
}
|
||||
|
||||
function dragDropTargetIsPrompt(target) {
|
||||
if (!(target?.placeholder?.indexOf("Prompt") >= 0)) return true;
|
||||
if (target?.parentNode?.parentNode) return true;
|
||||
if (target?.placeholder && target?.placeholder.indexOf("Prompt") >= 0) return true;
|
||||
if (target?.parentNode?.parentNode?.className?.indexOf("prompt") > 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue