Potential reactive parent is nil fix

This commit is contained in:
Robert Jelic
2025-09-30 19:22:49 +02:00
parent 464314e219
commit e461476b6a
2 changed files with 40 additions and 3 deletions

View File

@@ -689,6 +689,12 @@ end
--- @private
function Container:destroy()
if not self:isType("BaseFrame") then
for _, child in ipairs(self._values.children) do
if child.destroy then
child:destroy()
end
end
self:removeAllObservers()
VisualElement.destroy(self)
return self
else