mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-04 04:30:04 +00:00
Fix serialisation bug when editing string properties
This commit is contained in:
@@ -10078,8 +10078,12 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
input.addEventListener("blur", function(e) {
|
||||
this.focus();
|
||||
});
|
||||
|
||||
var v = node.properties[property] !== undefined ? node.properties[property] : "";
|
||||
v = JSON.stringify(v);
|
||||
if (type !== 'string') {
|
||||
v = JSON.stringify(v);
|
||||
}
|
||||
|
||||
input.value = v;
|
||||
input.addEventListener("keydown", function(e) {
|
||||
if (e.keyCode != 13) {
|
||||
|
||||
Reference in New Issue
Block a user