mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: re-extract Vue node data on slot label change for immediate rename
When a promoted widget is renamed via the sidebar, the node:slot-label:changed event now triggers a full re-extraction of Vue node data via extractVueNodeData, ensuring promotedLabel is recomputed immediately instead of waiting for a subgraph navigation round-trip.
This commit is contained in:
@@ -808,6 +808,8 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager {
|
||||
if (slotLabelEvent.slotType !== NodeSlotType.INPUT && nodeRef.outputs) {
|
||||
nodeRef.outputs = [...nodeRef.outputs]
|
||||
}
|
||||
// Re-extract widget data so promotedLabel reflects the rename
|
||||
vueNodeData.set(nodeId, extractVueNodeData(nodeRef))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user