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 select label not updating on option model changes
Browse files Browse the repository at this point in the history
closes #3052, closes #3909
  • Loading branch information
rschmukler committed Nov 20, 2015
1 parent badc1ef commit 4f3c5d9
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 @@ -306,6 +306,8 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
$mdAria.expect(element, 'aria-label', labelText);
}

scope.$watch(selectMenuCtrl.selectedLabels, syncLabelText);

function syncLabelText() {
if (selectContainer) {
selectMenuCtrl = selectMenuCtrl || selectContainer.find('md-select-menu').controller('mdSelectMenu');
Expand Down

0 comments on commit 4f3c5d9

Please sign in to comment.