Skip to content

Commit

Permalink
Set correct default for Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Jul 15, 2024
1 parent e55d728 commit 198c2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ltk/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def toggle_edit(event):
id = f"edit-switch-{get_time()}"
HBox.__init__(self,
Div(label).addClass("ltk-switch-label"),
Checkbox(True).attr("id", id).addClass("ltk-switch-checkbox").on("change", toggle_edit),
Checkbox(checked).attr("id", id).addClass("ltk-switch-checkbox").on("change", toggle_edit),
Label("").attr("value", "edit:").attr("for", id).addClass("ltk-switch"),
)

Expand Down

0 comments on commit 198c2a4

Please sign in to comment.