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

Commit 9e1e202

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(select): properly hide the progressbar
The loader in `md-select` is being shown/hidden via the `$$loadingAsyncDone` property. Initially it is `undefined`, which causes the loader to continue rendering in the background, until the user opens and closes the select. Fixes #8379. Closes #8381
1 parent 10e4712 commit 9e1e202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/select/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
170170
.find('md-content')
171171
.prepend(angular.element(
172172
'<div>' +
173-
' <md-progress-circular md-mode="indeterminate" ng-if="!$$loadingAsyncDone" md-diameter="25px"></md-progress-circular>' +
173+
' <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular>' +
174174
'</div>'
175175
));
176176

@@ -550,7 +550,7 @@ function SelectMenuDirective($parse, $mdUtil, $mdTheming) {
550550
var selectCtrl = ctrls[0];
551551

552552
element.addClass('_md'); // private md component indicator for styling
553-
553+
554554
$mdTheming(element);
555555
element.on('click', clickListener);
556556
element.on('keypress', keyListener);

0 commit comments

Comments
 (0)