Skip to content

Commit

Permalink
Fix logging not checking onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
pythongosssss committed Jan 15, 2024
1 parent f9e55d8 commit 23687da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/scripts/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ export class ComfyLogging {
id: settingId,
name: settingId,
defaultValue: true,
onChange: (value) => {
this.enabled = value;
},
type: (name, setter, value) => {
return $el("tr", [
$el("td", [
Expand All @@ -283,7 +286,7 @@ export class ComfyLogging {
type: "checkbox",
checked: value,
onchange: (event) => {
setter((this.enabled = event.target.checked));
setter(event.target.checked);
},
}),
$el("button", {
Expand Down

0 comments on commit 23687da

Please sign in to comment.