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

ngClick + ngFocus = $rootScope:inprog error #5945

Closed
@eyelidlessness

Description

@eyelidlessness

Steps to reproduce:

  1. Set up a directive with:
    • an element with ng-click
    • an input with ng-focus
  2. 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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions