Fix nested UI item parent state

This commit is contained in:
harumaki4649
2026-07-10 19:37:41 -04:00
committed by GitHub
parent f6dbb848d0
commit d2996be144
5 changed files with 113 additions and 0 deletions
+4
View File
@@ -206,6 +206,10 @@ class Item(Generic[V]):
def _update_view(self, view) -> None:
self._view = view
def _detach_view(self) -> None:
self._update_view(None)
self._parent = None
def copy(self) -> Self:
return copy.deepcopy(self)