diff --git a/src/components/select/select.js b/src/components/select/select.js index 2e5f1f56b5..83a586d314 100755 --- a/src/components/select/select.js +++ b/src/components/select/select.js @@ -280,6 +280,7 @@ function SelectDirective($mdSelect, $mdUtil, $mdConstant, $mdTheming, $mdAria, $ var stopMdMultipleWatch; var userDefinedLabelledby = angular.isDefined(attrs.ariaLabelledby); var listboxContentElement = element.find('md-content'); + var initialPlaceholder = element.attr('placeholder'); if (disableAsterisk) { element.addClass('md-no-asterisk'); @@ -291,24 +292,25 @@ function SelectDirective($mdSelect, $mdUtil, $mdConstant, $mdTheming, $mdAria, $ }; if (containerCtrl.input) { - // We ignore inputs that are in the md-select-header (one - // case where this might be useful would be adding as searchbox) + // We ignore inputs that are in the md-select-header. + // One case where this might be useful would be adding as searchbox. if (element.find('md-select-header').find('input')[0] !== containerCtrl.input[0]) { - throw new Error(" can only have *one* child ,