mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user