Skip to content

Commit 49ff0e0

Browse files
authored
Merge pull request #5573 from Textualize/fix-tabs-clear
cleared tabs fix
2 parents 699cc86 + 4e71a8d commit 49ff0e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111

1212
- Fixed `Link` binding to open the link https://github.com/Textualize/textual/issues/5564
13+
- Fixed issue with clear_panes breaking tabbed content https://github.com/Textualize/textual/pull/5573
1314

1415
## [2.1.0] - 2025-02-19
1516

src/textual/widgets/_tabs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def clear(self) -> AwaitComplete:
526526
underline = self.query_one(Underline)
527527
underline.highlight_start = 0
528528
underline.highlight_end = 0
529-
self.call_after_refresh(self.post_message, self.Cleared(self))
529+
self.post_message(self.Cleared(self))
530530
self.active = ""
531531
return AwaitComplete(self.query("#tabs-list > Tab").remove())
532532

0 commit comments

Comments
 (0)