Skip to content

Commit

Permalink
Merge pull request angular-ui#465 from cherrydev/master
Browse files Browse the repository at this point in the history
supports Angular 1.3's $touched attribute on close
  • Loading branch information
dimirc committed Feb 16, 2015
2 parents 73e30ec + ec20801 commit d595a23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@
// Closes the dropdown
ctrl.close = function(skipFocusser) {
if (!ctrl.open) return;
if (ctrl.ngModel && ctrl.ngModel.$setTouched) ctrl.ngModel.$setTouched();
_resetSearchInput();
ctrl.open = false;
if (!ctrl.multiple){
Expand Down

0 comments on commit d595a23

Please sign in to comment.