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

[Feature]: allow to pass autofocus attribute to SfInput #3110

Open
1 of 3 tasks
Baroshem opened this issue Apr 19, 2024 · 0 comments
Open
1 of 3 tasks

[Feature]: allow to pass autofocus attribute to SfInput #3110

Baroshem opened this issue Apr 19, 2024 · 0 comments
Labels
feature Feature request

Comments

@Baroshem
Copy link
Contributor

What package of StorefrontUI can be affected by this change?

all

How the project can be improved?

It would be useful to have an autofocus attribute to the SfInput component so that when passed, the input would get automatic focus when page / component loads

https://www.w3schools.com/tags/att_input_autofocus.asp

What are the acceptance criteria?

  • SfInput accepts autofocus prop that behaves just like a normal input html element
  • When autofocus is true, input should get automatic focus when it loads

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Baroshem Baroshem added the feature Feature request label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

1 participant