Skip to content

Commit cde7a15

Browse files
committed
fix(ios): potential crash while disposing
1 parent 503ab63 commit cde7a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-pager/index.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export abstract class PagerBase extends ContainerView implements AddChildFromBui
138138
const index = this._childrenViews.findIndex((s) => s.view === view);
139139
if (index !== -1) {
140140
// this._removeChildView(index);
141-
if (this.isLoaded) {
141+
if (this.isLoaded && this._isAddedToNativeVisualTree) {
142142
this.refresh();
143143
}
144144
}

0 commit comments

Comments
 (0)