Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

supports Angular 1.3's $touched attribute on close #465

Merged
merged 1 commit into from
Feb 16, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,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