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

Commit 4f3c5d9

Browse files
committed
fix(select): fix select label not updating on option model changes
closes #3052, closes #3909
1 parent badc1ef commit 4f3c5d9

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
@@ -306,6 +306,8 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
306306
$mdAria.expect(element, 'aria-label', labelText);
307307
}
308308

309+
scope.$watch(selectMenuCtrl.selectedLabels, syncLabelText);
310+
309311
function syncLabelText() {
310312
if (selectContainer) {
311313
selectMenuCtrl = selectMenuCtrl || selectContainer.find('md-select-menu').controller('mdSelectMenu');

0 commit comments

Comments
 (0)