fix(cycler): prevent node drag when interacting with index input in Vue DOM mode

Add @pointerdown.stop, @pointermove.stop, @pointerup.stop modifiers to the
index input element to stop pointer event propagation to parent node.
This prevents unintended node dragging when user clicks/drags on the index
input for value adjustment or text selection.

Follows the pattern used by ComfyUI built-in widgets like
WidgetLayoutField and WidgetTextarea.
This commit is contained in:
Will Miao
2026-01-24 12:16:29 +08:00
parent 13b18ac85f
commit b05762b066
3 changed files with 66 additions and 57 deletions

View File

@@ -52,6 +52,9 @@
:disabled="totalCount === 0"
@input="onIndexInput"
@blur="onIndexBlur"
@pointerdown.stop
@pointermove.stop
@pointerup.stop
/>
<span class="index-hint">1 - {{ totalCount || 1 }}</span>
</div>