We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a980f4 commit cf9d95aCopy full SHA for cf9d95a
src/components/NodeSearchBoxPopover.vue
@@ -65,8 +65,6 @@ const closeDialog = () => {
65
}
66
67
const addNode = (nodeDef: ComfyNodeDefImpl) => {
68
- closeDialog()
69
-
70
const node = app.addNodeOnGraph(nodeDef, { pos: getNewNodeLocation() })
71
72
const eventDetail = triggerEvent.value.detail
@@ -75,6 +73,13 @@ const addNode = (nodeDef: ComfyNodeDefImpl) => {
75
73
ConnectingLinkImpl.createFromPlainObject(link).connectTo(node)
76
74
})
77
+
+ // TODO: This is not robust timing-wise.
78
+ // PrimeVue complains about the dialog being closed before the event selecting
79
+ // item is fully processed.
80
+ window.setTimeout(() => {
81
+ closeDialog()
82
+ }, 100)
83
84
85
const canvasEventHandler = (e: LiteGraphCanvasEvent) => {
0 commit comments