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.

support binding autofocus #698

Closed
Closed
@lanterndev

Description

@lanterndev

On 2011-12-20, @IgorMinar said:

with regards to autofocus, the html5 spec says that the focus should be placed on the element when it is "inserted into the document" and there is also an additional restriction that says that there can be no more than one element with attribute autofocus in the document.

so autofocus is quite tricky and requires special treatment. can you please create a new issue for this and reference this issue or just quote this comment.

If multiple elements have a truthy ng-autofocus value, maybe just add the autofocus attribute to the first such visible element?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions