material-web icon indicating copy to clipboard operation
material-web copied to clipboard

[mwc-textfield] - missing autofocus attribute support

Open yinonov opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. autofocus property isn't provided in textfield. making it impossible for consumers to natively focus on textfield's input on load of page

Describe the solution you'd like Forward autofocus property to actual shadowed input

Describe alternatives you've considered look up the shadowed input programmatically and call its focus method

Additional context autofocus attribute is quite a common attribute and should be prioritise for a11y reasons

yinonov avatar Oct 26 '20 12:10 yinonov

Thanks for the report! Looks like autofocus attribute on the input should just work (Example: https://glitch.com/edit/#!/humane-bramble-bunny)

dfreedm avatar Oct 29 '20 22:10 dfreedm

Thanks for the report! Looks like autofocus attribute on the input should just work (Example: https://glitch.com/edit/#!/humane-bramble-bunny)

Isn't the question here how to autofocus mwc-textfield? The Glitch demo merely puts autofocus on a native input element.

DannyMoerkerke avatar Jan 25 '21 12:01 DannyMoerkerke

Needed!

SaadBazaz avatar Jul 24 '24 05:07 SaadBazaz