mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 08:00:05 +00:00
Emit graph changed event after modifying a widget value via keyboard (#1072)
This commit is contained in:
@@ -200,6 +200,16 @@ export class ChangeTracker {
|
||||
return v
|
||||
}
|
||||
|
||||
// Handle litegraph dialog popup for number/string widgets
|
||||
const prompt = LGraphCanvas.prototype.prompt
|
||||
LGraphCanvas.prototype.prompt = function (title, value, callback, event) {
|
||||
const extendedCallback = (v) => {
|
||||
callback(v)
|
||||
changeTracker().checkState()
|
||||
}
|
||||
return prompt.apply(this, [title, value, extendedCallback, event])
|
||||
}
|
||||
|
||||
// Handle litegraph context menu for COMBO widgets
|
||||
const close = LiteGraph.ContextMenu.prototype.close
|
||||
LiteGraph.ContextMenu.prototype.close = function (e) {
|
||||
|
||||
Reference in New Issue
Block a user