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

Commit

Permalink
fix(select): make select popup inherit theming
Browse files Browse the repository at this point in the history
closes #2483
  • Loading branch information
rschmukler committed Jun 21, 2015
1 parent 73b1df4 commit 691dd2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $interpolate,
selectEl.data('$ngModelController', ngModel);
selectEl.data('$mdSelectController', mdSelectCtrl);
selectScope = scope.$new();
$mdTheming.inherit(selectContainer, element);
selectContainer = $compile(selectContainer)(selectScope);
selectMenuCtrl = selectContainer.find('md-select-menu').controller('mdSelectMenu');
}
Expand Down Expand Up @@ -750,7 +751,7 @@ function SelectProvider($$interimElementProvider) {
$timeout(activateInteraction, 75, false);

if (opts.backdrop) {
$mdTheming.inherit(opts.backdrop, opts.parent);
$mdTheming.inherit(opts.backdrop, opts.target);
opts.parent.append(opts.backdrop);
}
opts.parent.append(element);
Expand Down

0 comments on commit 691dd2f

Please sign in to comment.