mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +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
|
// Skip if canvas has focus (litegraph handles it) or if in editable element
|
||||||
if (activeElement.value === canvas.canvas) return
|
if (activeElement.value === canvas.canvas) return
|
||||||
if (isEditableElement(activeElement.value!)) return
|
if (isEditableElement(activeElement.value || null)) return
|
||||||
|
|
||||||
// Mirror litegraph's processKey behavior for spacebar
|
// Mirror litegraph's processKey behavior for spacebar
|
||||||
if (isPressed) {
|
if (isPressed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user