Skip to content

Commit e9cb118

Browse files
committed
fix: prevent error in latest N
1 parent 2530c39 commit e9cb118

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/ui-persistent-bottomsheet/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,16 @@ export class PersistentBottomSheet extends AbsoluteLayout {
269269
this.scrollView = null;
270270
}
271271
}
272-
272+
addChild(child) {
273+
if (child === this.bottomSheet) {
274+
return;
275+
}
276+
super.addChild(child);
277+
}
273278
_onBottomSheetChanged(oldValue: View, newValue: View) {
279+
if (oldValue === newValue) {
280+
return;
281+
}
274282
if (oldValue) {
275283
this.removeChild(oldValue);
276284
}

0 commit comments

Comments
 (0)