Commit 23687da9 authored by pythongosssss's avatar pythongosssss
Browse files

Fix logging not checking onChange

parent f9e55d84
...@@ -269,6 +269,9 @@ export class ComfyLogging { ...@@ -269,6 +269,9 @@ export class ComfyLogging {
id: settingId, id: settingId,
name: settingId, name: settingId,
defaultValue: true, defaultValue: true,
onChange: (value) => {
this.enabled = value;
},
type: (name, setter, value) => { type: (name, setter, value) => {
return $el("tr", [ return $el("tr", [
$el("td", [ $el("td", [
...@@ -283,7 +286,7 @@ export class ComfyLogging { ...@@ -283,7 +286,7 @@ export class ComfyLogging {
type: "checkbox", type: "checkbox",
checked: value, checked: value,
onchange: (event) => { onchange: (event) => {
setter((this.enabled = event.target.checked)); setter(event.target.checked);
}, },
}), }),
$el("button", { $el("button", {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment