mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 07:00:23 +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) {
|
||||
|
||||
2
build/litegraph.min.js
vendored
2
build/litegraph.min.js
vendored
@@ -4381,7 +4381,7 @@ $jscomp.polyfill("Object.values", function(x) {
|
||||
if (l = h.querySelector("input")) {
|
||||
l.addEventListener("blur", function(a) {
|
||||
this.focus();
|
||||
}), n = void 0 !== a.properties[b] ? a.properties[b] : "", n = JSON.stringify(n), l.value = n, l.addEventListener("keydown", function(a) {
|
||||
}), n = void 0 !== a.properties[b] ? a.properties[b] : "", "string" !== f && (n = JSON.stringify(n)), l.value = n, l.addEventListener("keydown", function(a) {
|
||||
13 == a.keyCode && (e(), a.preventDefault(), a.stopPropagation());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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