-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Description
π 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
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.