mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #1058 from NativeScript/tab-view-selectedIndex
selectedIndex behavior when no tabs fixed
This commit is contained in:
@@ -227,6 +227,10 @@ export class TabView extends common.TabView {
|
||||
|
||||
// When we set this._ios.viewControllers, someone is clearing the moreNavigationController.delegate, so we have to reassign it each time here.
|
||||
this._ios.moreNavigationController.delegate = this._moreNavigationControllerDelegate;
|
||||
|
||||
if (this._ios.selectedIndex !== this.selectedIndex) {
|
||||
this._ios.selectedIndex = this.selectedIndex;
|
||||
}
|
||||
}
|
||||
|
||||
public _getIcon(iconSource: string): UIImage {
|
||||
|
||||
Reference in New Issue
Block a user