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

Commit b1b2c06

Browse files
committed
fix(select): fix dynamic placeholder text
closes #4689
1 parent eacca5e commit b1b2c06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/select/select.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
197197
inputCheckValue();
198198
};
199199

200+
attr.$observe('placeholder', ngModelCtrl.$render);
201+
200202
mdSelectCtrl.setLabelText = function(text) {
201203
mdSelectCtrl.setIsPlaceholder(!text);
202204
// Use placeholder attribute, otherwise fallback to the md-input-container label

0 commit comments

Comments
 (0)