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

Commit

Permalink
fix(menu): fixes JS focus error on close
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle committed Sep 16, 2015
1 parent 8849213 commit d75d021
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 @@ -148,7 +148,7 @@ function MenuController($mdMenu, $attrs, $element, $scope, $mdUtil, $timeout) {
if (!skipFocus) {
var el = self.restoreFocusTo || $element.find('button')[0];
if (el instanceof angular.element) el = el[0];
el.focus();
if (el) el.focus();
}
};

Expand Down

0 comments on commit d75d021

Please sign in to comment.