We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752fab0 commit 799b610Copy full SHA for 799b610
src/ui-persistent-bottomsheet/index.ts
@@ -269,8 +269,9 @@ export class PersistentBottomSheet extends AbsoluteLayout {
269
this.scrollView = null;
270
}
271
272
+ allowBottomSheetAdd = false
273
addChild(child) {
- if (child === this.bottomSheet) {
274
+ if (child === this.bottomSheet && !this.allowBottomSheetAdd) {
275
return;
276
277
super.addChild(child);
@@ -299,7 +300,9 @@ export class PersistentBottomSheet extends AbsoluteLayout {
299
300
let index;
301
if (!newValue.parent) {
302
index = this.getChildrenCount();
303
+ this.allowBottomSheetAdd = true;
304
this.addChild(newValue);
305
+ this.allowBottomSheetAdd = false;
306
} else {
307
index = this.getChildIndex(newValue);
308
0 commit comments