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

Commit c0793c8

Browse files
refactor(chips): use resetSelectedChip()
Closes #5411.
1 parent 17f8ed1 commit c0793c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/chips/js/chipDirective.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ function MdChip($mdTheming, $mdUtil) {
5757

5858
angular.element(element[0].querySelector('._md-chip-content'))
5959
.on('blur', function () {
60-
chipsController.selectedChip = -1;
61-
chipsController.$scope.$applyAsync();
60+
chipsController.$scope.$applyAsync(
61+
angular.bind(chipsController, chipsController.resetSelectedChip)
62+
);
6263
});
6364
}
6465
};

0 commit comments

Comments
 (0)