Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(mdMenu): fix attempting to close non-existant nested menus
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler committed Nov 9, 2015
1 parent e9bcec1 commit 6bf98aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/menu/js/menuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function MenuController($mdMenu, $attrs, $element, $scope, $mdUtil, $timeout) {
} else if (nestedMenu && !nestedMenu.isOpen && nestedMenu.open) {
self.isAlreadyOpening = true;
}
nestedMenu.open();
nestedMenu && nestedMenu.open();
}, nestedMenu ? 100 : 250);
var focusableTarget = event.currentTarget.querySelector('button:not([disabled])');
focusableTarget && focusableTarget.focus();
Expand Down

0 comments on commit 6bf98aa

Please sign in to comment.