Skip to content

Commit

Permalink
Merge pull request angular-ui#137 from angular-ui/fix-apply-angular1.…
Browse files Browse the repository at this point in the history
…3-beta

Prevent '$apply already in progress' error at angular v1.3.0-beta-12+
  • Loading branch information
dimirc committed Aug 2, 2014
2 parents 9290cc9 + 9483a71 commit 5a95ef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@
if (ctrl.open) {
_resetSearchInput();
ctrl.open = false;
ctrl.focusser[0].focus();
$timeout(function(){
ctrl.focusser[0].focus();
});
}
};

Expand Down

0 comments on commit 5a95ef0

Please sign in to comment.