Commit cc2f6e3b authored by AUTOMATIC's avatar AUTOMATIC

fix error in dragdrop logic

parent ee65e729
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment