Skip to content

Commit

Permalink
fix(menu): change container where menu popup is appended
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben1 committed Jun 18, 2015
1 parent 4623a9d commit 74cf1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/menu/menu-interim-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -76,7 +76,7 @@ function MenuProvider($$interimElementProvider) {
angular.extend(opts, {
alreadyOpen: false,
isRemoved: false,
target: angular.element(opts.target), //make sure it's not a naked dom node
target: angular.element('md-content'), //make sure it's not a naked dom node

This comment has been minimized.

Copy link
@ruben1

ruben1 Jun 18, 2015

Author

The problem is the one that the comment mentions. I will fix it programatically

parent: angular.element(opts.parent),
menuContentEl: angular.element(element[0].querySelector('md-menu-content')),
backdrop: opts.hasBackdrop && angular.element('<md-backdrop class="md-menu-backdrop md-click-catcher">')
Expand Down

0 comments on commit 74cf1b3

Please sign in to comment.