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

Wrap focus in timeout to prevent Error: $rootScope:inprog#778

Merged
dimirc merged 1 commit into
angular-ui:masterfrom
AdamAxtmann:focus_fix
Mar 20, 2015
Merged

Wrap focus in timeout to prevent Error: $rootScope:inprog#778
dimirc merged 1 commit into
angular-ui:masterfrom
AdamAxtmann:focus_fix

Conversation

@AdamAxtmann
Copy link
Copy Markdown

Clearing selection can result in $rootScope:inprog error when focus() is called and an $apply is already in progress.

Fixed as described in https://docs.angularjs.org/error/$rootScope/inprog

dimirc added a commit that referenced this pull request Mar 20, 2015
Wrap focus in timeout to prevent Error: $rootScope:inprog
@dimirc dimirc merged commit 948d383 into angular-ui:master Mar 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants