mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 13:59:54 +00:00
fix: Explicitly pass null to isEditableElement when activeElement.value is falsy.
This commit is contained in:
@@ -30,7 +30,7 @@ watch(space, (isPressed) => {
|
||||
|
||||
// Skip if canvas has focus (litegraph handles it) or if in editable element
|
||||
if (activeElement.value === canvas.canvas) return
|
||||
if (isEditableElement(activeElement.value!)) return
|
||||
if (isEditableElement(activeElement.value || null)) return
|
||||
|
||||
// Mirror litegraph's processKey behavior for spacebar
|
||||
if (isPressed) {
|
||||
|
||||
Reference in New Issue
Block a user