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

Commit 9f66352

Browse files
topherfangioThomasBurleson
authored andcommitted
fix(menu): Typo in hover deregistration.
There was a typo in the hover deregistration code which attempted to deregister an non-existent function. Fix by adding `Item` to the handler. Fixes #7947. Closes #8045
1 parent 6275424 commit 9f66352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/menu/js/menuController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function MenuController($mdMenu, $attrs, $element, $scope, $mdUtil, $timeout, $r
7272
deregisterScopeListeners.shift()();
7373
}
7474
menuItems && menuItems.off('mouseenter', self.handleMenuItemHover);
75-
menuItems && menuItems.off('mouseleave', self.handleMenuMouseLeave);
75+
menuItems && menuItems.off('mouseleave', self.handleMenuItemMouseLeave);
7676
};
7777

7878
this.handleMenuItemHover = function(event) {

0 commit comments

Comments
 (0)