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

Commit 5a95ef0

Browse files
committed
Merge pull request #137 from angular-ui/fix-apply-angular1.3-beta
Prevent '$apply already in progress' error at angular v1.3.0-beta-12+
2 parents 9290cc9 + 9483a71 commit 5a95ef0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/select.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@
237237
if (ctrl.open) {
238238
_resetSearchInput();
239239
ctrl.open = false;
240-
ctrl.focusser[0].focus();
240+
$timeout(function(){
241+
ctrl.focusser[0].focus();
242+
});
241243
}
242244
};
243245

0 commit comments

Comments
 (0)