mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Adding view to parent only if not already added.
This commit is contained in:
@ -244,7 +244,9 @@ export class TabView extends common.TabView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
item._parent = this;
|
item._parent = this;
|
||||||
|
if (item.view.parent !== this) {
|
||||||
this._addView(item.view, idx);
|
this._addView(item.view, idx);
|
||||||
|
}
|
||||||
tabItems.push(this.createTabItem(item));
|
tabItems.push(this.createTabItem(item));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user