mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tabs): Double tapping a tab would set the wrong view history, closes #656
This commit is contained in:
3
js/ext/angular/src/service/ionicView.js
vendored
3
js/ext/angular/src/service/ionicView.js
vendored
@@ -322,6 +322,9 @@ angular.module('ionic.service.view', ['ui.router', 'ionic.service.platform'])
|
||||
if(historyId) {
|
||||
var hist = $rootScope.$viewHistory.histories[ historyId ];
|
||||
if(hist && hist.stack.length) {
|
||||
if($rootScope.$viewHistory.currentView && $rootScope.$viewHistory.currentView.viewId === hist.stack[0].viewId) {
|
||||
return;
|
||||
}
|
||||
$rootScope.$viewHistory.forcedNav = {
|
||||
viewId: hist.stack[0].viewId,
|
||||
navAction: 'moveBack',
|
||||
|
||||
Reference in New Issue
Block a user