mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): set current tab as topmost frame on load (#5908)
This commit is contained in:
@@ -213,6 +213,13 @@ export class TabView extends TabViewBase {
|
||||
@profile
|
||||
public onLoaded() {
|
||||
super.onLoaded();
|
||||
|
||||
const selectedIndex = this.selectedIndex;
|
||||
const selectedView = this.items && this.items[selectedIndex] && this.items[selectedIndex].view;
|
||||
if (selectedView instanceof Frame) {
|
||||
selectedView._pushInFrameStack();
|
||||
}
|
||||
|
||||
this._ios.delegate = this._delegate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user