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.

1.2.0: An event that triggers another event causes $apply already in progress error #4947

@ryanzec

Description

@ryanzec

Here is the plunker:

http://plnkr.co/edit/aiNK9bAP6BYnYEBMNle4?p=preview
http://plnkr.co/edit/AuhbiPD4kriFTxH17hyL?p=preview updated to use directive

This is a simplified version of my auto focus directive (I know accessing the DOM in the controller is a no no) but am using this to show the issue. The ng-click event triggers a focus event on the input which has a ng-focus attached. When doing this, it causes a $apply already in progress error.

Is this a bug or am I not supposed to be able to do this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions