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 dynamic placeholder text
Browse files Browse the repository at this point in the history
closes #4689
  • Loading branch information
rschmukler committed Sep 28, 2015
1 parent eacca5e commit b1b2c06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
inputCheckValue();
};

attr.$observe('placeholder', ngModelCtrl.$render);

mdSelectCtrl.setLabelText = function(text) {
mdSelectCtrl.setIsPlaceholder(!text);
// Use placeholder attribute, otherwise fallback to the md-input-container label
Expand Down

0 comments on commit b1b2c06

Please sign in to comment.