Skip to content

Commit 799b610

Browse files
committed
fix: regression fix
1 parent 752fab0 commit 799b610

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ui-persistent-bottomsheet/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,9 @@ export class PersistentBottomSheet extends AbsoluteLayout {
269269
this.scrollView = null;
270270
}
271271
}
272+
allowBottomSheetAdd = false
272273
addChild(child) {
273-
if (child === this.bottomSheet) {
274+
if (child === this.bottomSheet && !this.allowBottomSheetAdd) {
274275
return;
275276
}
276277
super.addChild(child);
@@ -299,7 +300,9 @@ export class PersistentBottomSheet extends AbsoluteLayout {
299300
let index;
300301
if (!newValue.parent) {
301302
index = this.getChildrenCount();
303+
this.allowBottomSheetAdd = true;
302304
this.addChild(newValue);
305+
this.allowBottomSheetAdd = false;
303306
} else {
304307
index = this.getChildIndex(newValue);
305308
}

0 commit comments

Comments
 (0)