mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
fix Vue node being dragged when interacting with widgets (e.g., resizing textarea) (#5719)
## Summary Applying changes in https://github.com/Comfy-Org/ComfyUI_frontend/pull/5516 to entire widget wrapper. ## Changes - **What**: Added `.stop` modifier to pointer events in NodeWidgets component to prevent [event propagation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation) ## Review Focus Verify widget interactions remain functional while ensuring parent node drag/selection behavior is properly isolated. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5719-fix-Vue-node-being-dragged-when-interacting-with-widgets-e-g-resizing-textarea-2766d73d3650815091adcd1d65197c7b) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -12,9 +12,9 @@
|
|||||||
: 'pointer-events-none'
|
: 'pointer-events-none'
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
@pointerdown="handleWidgetPointerEvent"
|
@pointerdown.stop="handleWidgetPointerEvent"
|
||||||
@pointermove="handleWidgetPointerEvent"
|
@pointermove.stop="handleWidgetPointerEvent"
|
||||||
@pointerup="handleWidgetPointerEvent"
|
@pointerup.stop="handleWidgetPointerEvent"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-for="(widget, index) in processedWidgets"
|
v-for="(widget, index) in processedWidgets"
|
||||||
|
|||||||
Reference in New Issue
Block a user