This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Description
Steps to reproduce:
- Set up a directive with:
- an element with
ng-click
- an
input with ng-focus
- Inside the
ng-click handler, call input.focus()
Expected result:
Input will focus, and ng-focus handler will be called.
Observed result:
Input focuses, but $rootScope:inprog error thrown. Error cannot be caught. ng-focus handler never called.
Example code
http://jsfiddle.net/MVxqj/2/