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

Commit

Permalink
revert(select): reverts select change that was breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle committed Dec 3, 2015
1 parent aa6a058 commit cdc9719
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,12 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par

// Use everything that's left inside element.contents() as the contents of the menu
var multiple = angular.isDefined(attr.multiple) ? 'multiple' : '';
var modelBinding = angular.isDefined(attr.ngModel) ? 'ng-model="' + attr.ngModel + '"' : '';
var selectTemplate = '' +
'<div class="md-select-menu-container" aria-hidden="true">' +
'<md-select-menu {0} {1}>{2}</md-select-menu>' +
'<md-select-menu {0}>{1}</md-select-menu>' +
'</div>';

selectTemplate = $mdUtil.supplant(selectTemplate, [multiple, modelBinding, element.html()]);
selectTemplate = $mdUtil.supplant(selectTemplate, [multiple, element.html()]);
element.empty().append(valueEl);
element.append(selectTemplate);

Expand Down

0 comments on commit cdc9719

Please sign in to comment.