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

Commit

Permalink
fix(select): fix theming
Browse files Browse the repository at this point in the history
closes #2483, references #2628
  • Loading branch information
rschmukler committed May 3, 2015
1 parent 4e855c7 commit 7e0a2aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $interpolate,

attr.tabindex = attr.tabindex || '0';

$mdTheming(element);

return function postLink(scope, element, attr, ctrls) {
var isOpen;
var isDisabled;
Expand All @@ -152,6 +150,8 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $interpolate,
var selectContainer, selectScope, selectMenuCtrl;
createSelect();

$mdTheming(element);

if (attr.name && formCtrl) {
var selectEl = element.parent()[0].querySelector('select[name=".' + attr.name + '"]')
formCtrl.$removeControl(angular.element(selectEl).controller());
Expand Down

0 comments on commit 7e0a2aa

Please sign in to comment.