mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(sideMenu): enable menu w/ different historyId back view
This commit is contained in:
7
js/angular/controller/sideMenuController.js
vendored
7
js/angular/controller/sideMenuController.js
vendored
@@ -368,7 +368,12 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
|
||||
startX <= self.edgeThreshold ||
|
||||
startX >= self.content.element.offsetWidth - self.edgeThreshold;
|
||||
|
||||
var menuEnabled = self.enableMenuWithBackViews() ? true : !$ionicHistory.backView();
|
||||
var backView = $ionicHistory.backView();
|
||||
var menuEnabled = enableMenuWithBackViews ? true : !backView;
|
||||
if (!menuEnabled) {
|
||||
var currentView = $ionicHistory.currentView() || {};
|
||||
return backView.historyId !== currentView.historyId;
|
||||
}
|
||||
|
||||
return ($scope.dragContent || self.isOpen()) &&
|
||||
dragIsWithinBounds &&
|
||||
|
||||
Reference in New Issue
Block a user