Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mwc-textfield] - missing autofocus attribute support #1916

Open
yinonov opened this issue Oct 26, 2020 · 3 comments
Open

[mwc-textfield] - missing autofocus attribute support #1916

yinonov opened this issue Oct 26, 2020 · 3 comments
Labels
Type: Feature New feature or request

Comments

@yinonov
Copy link

yinonov commented Oct 26, 2020

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

@dfreedm
Copy link
Collaborator

dfreedm commented Oct 29, 2020

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

@DannyMoerkerke
Copy link

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.

@SaadBazaz
Copy link
Contributor

Needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants