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

support binding autofocus #698

Closed
lanterndev opened this issue Dec 22, 2011 · 1 comment
Closed

support binding autofocus #698

lanterndev opened this issue Dec 22, 2011 · 1 comment

Comments

@lanterndev
Copy link
Contributor

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?

@pkozlowski-opensource
Copy link
Member

Duplicate of #2012

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants