Skip to content

Commit d595a23

Browse files
committed
Merge pull request angular-ui#465 from cherrydev/master
supports Angular 1.3's $touched attribute on close
2 parents 73e30ec + ec20801 commit d595a23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/select.js

+1
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@
456456
// Closes the dropdown
457457
ctrl.close = function(skipFocusser) {
458458
if (!ctrl.open) return;
459+
if (ctrl.ngModel && ctrl.ngModel.$setTouched) ctrl.ngModel.$setTouched();
459460
_resetSearchInput();
460461
ctrl.open = false;
461462
if (!ctrl.multiple){

0 commit comments

Comments
 (0)