IssueRaiser

Suggestion: Create an API on FormControl to focus the input

# 🚀 feature request ### Relevant Package This feature request is for @angular/forms ### Description The FormControl class does not have a FOCUS method. ### Describe the solution you'd like Create an API on FormControl that would easily allow the input to be focused without having to resort to bringing in Renderer or ElementRef. ### Describe alternatives you've considered https://github.com/angular/angular/issues/12463 https://github.com/angular/angular/issues/13158 The best response for the Angular team is as follows: >We’re trying to keep our forms modules light and fast, and so it’s important to balance additions to the API with keeping the bundle size manageable. I fail to see how a focus method would increase bundle size in any significant way. Bits maybe. The trade off by not doing this is that everyone project implement their own focus thus increasing bundle size for nearly every project anyway since focus on an input is practically universal need for modern UI design. The comment history on both issues show a need. There are several good arguments for this feature and since both issues where closed long ago I am submitting the feature request _again_ to make another community generated push for it.

Posted by logic01 on Jun 19, 2019, 3:03 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

reliability (Software)

Suggestion: Create an API on FormControl to focus the input

logic01Jun 19, 2019, 3:03 PM

# 🚀 feature request ### Relevant Package This feature request is for @angular/forms ### Description The FormControl class does not have a FOCUS method. ### Describe the solution you'd like Create an API on FormControl that would easily allow the input to be focused without having to resort to bringing in Renderer or ElementRef. ### Describe alternatives you've considered https://github.com/angular/angular/issues/12463 https://github.com/angular/angular/issues/13158 The best response for the Angular team is as follows: >We’re trying to keep our forms modules light and fast, and so it’s important to balance additions to the API with keeping the bundle size manageable. I fail to see how a focus method would increase bundle size in any significant way. Bits maybe. The trade off by not doing this is that everyone project implement their own focus thus increasing bundle size for nearly every project anyway since focus on an input is practically universal need for modern UI design. The comment history on both issues show a need. There are several good arguments for this feature and since both issues where closed long ago I am submitting the feature request _again_ to make another community generated push for it.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue