Compare commits

...
1 Commits
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -27,10 +27,12 @@ export function setupDragAndDrop() {
});
document.addEventListener("drop", async (e) => {
// Cancel loading entirely if dropping inside the sidebar area
// Cancel loading entirely and prevent bubbling if dropping inside the sidebar area
const isSidebarDrop = e.target.closest('.comfyui-sidebar, .comfy-sidebar, [class*="sidebar"]') ||
(State.sidebarContainer && State.sidebarContainer.contains(e.target));
if (isSidebarDrop) {
e.preventDefault();
e.stopPropagation();
return;
}
+3 -2
View File
@@ -915,9 +915,10 @@ export function renderDOM() {
cardObj.btnFocus.style.display = "none";
}
// Show explorer view button if this run yielded multiple node outputs
// Show explorer view button if this run yielded multiple node outputs, or if it was interrupted/failed but has some outputs
const outputs = getRunOutputs(state.nodeOutputs, state.workflow);
if (outputs.length > 1) {
const isInterrupted = state.status === "cancelled" || state.status === "error";
if (outputs.length > 1 || (outputs.length > 0 && isInterrupted)) {
cardObj.leftHoverBtn.style.display = "inline-flex";
} else {
cardObj.leftHoverBtn.style.display = "none";