diff --git a/src/core/Layout.ts b/src/core/Layout.ts index 98de44c..ae0652f 100644 --- a/src/core/Layout.ts +++ b/src/core/Layout.ts @@ -297,6 +297,7 @@ export class Layout { this.destroyed = true; this.invalidateRoot(); + onChildRemoved(this); this.yoga.free(); this.target.off('added', this._onChildAdded, this); this.target.off('removed', this._onChildRemoved, this);