8000 prevent default events · rusongyu/angular.io@cd4f0f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd4f0f4

Browse files
committed
prevent default events
1 parent aa3c471 commit cd4f0f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

public/resources/js/site.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDial
2929

3030
// TOGGLE MAIN NAV (TOP) ON MOBILE
3131
$scope.toggleDocsMenu = function(event) {
32+
event.preventDefault();
3233
$scope.showDocsNav = !$scope.showDocsNav;
3334
};
3435

3536
// TOGGLE DOCS NAV
3637
$scope.toggleMainMenu = function(event) {
38+
event.preventDefault();
3739
$scope.showMainNav = !$scope.showMainNav;
3840
};
3941

4042
// TOGGLE DOCS VERSION & LANGUAGE
4143
$scope.toggleVersionMenu = function(event) {
44+
event.preventDefault();
4245
$scope.showMenu = !$scope.showMenu;
4346
};
4447

0 commit comments

Comments
 (0)
0