From 8445605777b71c8750ff7a24d551d8a4bdfe9f96 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Sat, 6 Sep 2025 03:37:39 -0700 Subject: [PATCH] fix: correct Vue ref auto-unwrapping in slot components (#5378) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed the misuse of exposed template refs in InputSlot and OutputSlot components. When Vue exposes a Ref via defineExpose, it auto-unwraps it on the parent component instance. The previous code was incorrectly double-unwrapping by calling .value on an already unwrapped HTMLElement. Changes: - Updated type to ComponentPublicInstance with unwrapped HTMLElement - Replaced watch with watchEffect for better timing handling - Removed incorrect .value access on auto-unwrapped ref This ensures slot elements are properly registered with useDomSlotRegistration, fixing slot position tracking and hit-testing in the layout system. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- .../vueNodes/components/InputSlot.vue | 29 +++++++++++-------- .../vueNodes/components/OutputSlot.vue | 29 +++++++++++-------- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/src/renderer/extensions/vueNodes/components/InputSlot.vue b/src/renderer/extensions/vueNodes/components/InputSlot.vue index 52dbacac0..58238d608 100644 --- a/src/renderer/extensions/vueNodes/components/InputSlot.vue +++ b/src/renderer/extensions/vueNodes/components/InputSlot.vue @@ -32,7 +32,14 @@