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

Commit 9483a71

Browse files
committed
fix(focus): prevent '$apply already in progress' error at angular v 1.3.0-beta-12+
1 parent 3a8e496 commit 9483a71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/select.js

Lines changed: 3 additions & 1 deletion
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)