mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Merge pull request #1419 from NativeScript/nnikolov/TabViewIssue
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;
|
||||
this._addView(item.view, idx);
|
||||
if (item.view.parent !== this) {
|
||||
this._addView(item.view, idx);
|
||||
}
|
||||
tabItems.push(this.createTabItem(item));
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user