diff --git a/src/components/menu/menu-interim-element.js b/src/components/menu/menu-interim-element.js index 211e075fb69..a5cdf9641ff 100644 --- a/src/components/menu/menu-interim-element.js +++ b/src/components/menu/menu-interim-element.js @@ -23,7 +23,7 @@ function MenuProvider($$interimElementProvider) { /* @ngInject */ function menuDefaultOptions($$rAF, $window, $mdUtil, $mdTheming, $timeout, $mdConstant, $document) { return { - parent: 'body', + parent: 'md-content', onShow: onShow, onRemove: onRemove, hasBackdrop: true, @@ -77,7 +77,7 @@ function MenuProvider($$interimElementProvider) { alreadyOpen: false, isRemoved: false, target: angular.element(opts.target), //make sure it's not a naked dom node - parent: angular.element(opts.parent), + parent: angular.element('md-content'), menuContentEl: angular.element(element[0].querySelector('md-menu-content')), backdrop: opts.hasBackdrop && angular.element('') });