Skip to content

Suggestion: Create an API on FormControl to focus the input #12463

@third774

Description

@third774

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Suggestion

Create an API on FormControl that would easily allow the input to be focused without having to resort to bringing in Renderer or ElementRef.

What is the motivation / use case for changing the behavior?
This could be used widely to either easily focus the first input in a form after it is rendered, or focus inputs which have invalid data entered into them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions