mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Ensure a Tree's node is refreshed when the label is changed
Fixes #2698
This commit is contained in:
@@ -307,6 +307,7 @@ class TreeNode(Generic[TreeDataType]):
|
||||
self._updates += 1
|
||||
text_label = self._tree.process_label(label)
|
||||
self._label = text_label
|
||||
self._tree._refresh_node(self)
|
||||
|
||||
def add(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user