Skip to content

Commit

Permalink
remove timer objects from hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Aug 30, 2024
1 parent 552cc29 commit ce0e587
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nicegui/elements/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,5 @@ def _should_stop(self) -> bool:

def _cleanup(self) -> None:
self.callback = None
assert self.parent_slot
self.parent_slot.parent.remove(self)

0 comments on commit ce0e587

Please sign in to comment.