Skip to content

Commit

Permalink
fix(select): fix undefined class on select container
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler authored and kennethcachia committed Sep 23, 2015
1 parent 58210b5 commit c6a31d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $rootElement,
selectEl.data('$mdSelectController', mdSelectCtrl);
selectScope = scope.$new();
$mdTheming.inherit(selectContainer, element);
selectContainer[0].setAttribute('class', selectContainer[0].getAttribute('class') + ' ' + element.attr('md-container-class'));
if (element.attr('md-container-class')) {
selectContainer[0].setAttribute('class', selectContainer[0].getAttribute('class') + ' ' + element.attr('md-container-class'));
}
selectContainer = $compile(selectContainer)(selectScope);
selectMenuCtrl = selectContainer.find('md-select-menu').controller('mdSelectMenu');
}
Expand Down

0 comments on commit c6a31d0

Please sign in to comment.