Skip to content

Commit

Permalink
🐛 Add a workaround for Textualize/textual#3714
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Dec 12, 2023
1 parent 1398f8e commit a243a7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tinboard/widgets/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ def _prompt(self, tag: str, count: int) -> RenderableType:
prompt.add_row(tag, f"[dim i]{count}[/]")
return prompt

def clear_options(self) -> Self:
"""Workaround for https://github.com/Textualize/textual/issues/3714"""
super().clear_options()
self._clear_content_tracking()
return self

def show(self, tags: list[tuple[str, int]]) -> Self:
"""Show the given list of tags.
Expand Down

0 comments on commit a243a7b

Please sign in to comment.