Skip to content

Commit

Permalink
Fix unique id for Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Nov 23, 2024
1 parent 3602e00 commit 4ba508e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ltk/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def toggle_edit(event): # pylint: disable=unused-argument
self.element.prop("checked", checked)

self.checkbox = Checkbox(checked)
element_id = f"edit-switch-{get_time()}"
element_id = f"edit-switch-{id(self)}"
HBox.__init__(self,
Div(label)
.addClass("ltk-switch-label"),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyscript-ltk"
version = "0.2.2"
version = "0.2.3"
description = "A little toolkit for writing UIs in PyScript"
readme = "README.md"
authors = [{ name = "Chris Laffra", email = "chris@chrislaffra.com" }]
Expand Down

0 comments on commit 4ba508e

Please sign in to comment.