From 3cf19af173ca898b9d343a2ac7c7e35eaed46166 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 31 Dec 2025 02:15:39 +0100 Subject: [PATCH] fix: Explicitly pass null to `isEditableElement` when `activeElement.value` is falsy. --- .../vueNodes/composables/useNodePointerInteractions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts index b265b3ae4..295dea61f 100644 --- a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts +++ b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts @@ -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) {