fix: use strict equality for onDragDrop return check

Addresses review feedback:
https://github.com/Comfy-Org/ComfyUI_frontend/pull/9463#discussion_r2944858511
This commit is contained in:
bymyself
2026-03-17 07:57:20 +00:00
parent bf45727470
commit c1badf2e75

View File

@@ -832,6 +832,6 @@ function handleDrop(event: DragEvent) {
if (!node?.onDragDrop) return
const handled = node.onDragDrop(event)
if (handled) event.stopPropagation()
if (handled === true) event.stopPropagation()
}
</script>