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

autofocus in the show action view #193

Closed
luiscobot opened this issue Jan 6, 2024 · 2 comments
Closed

autofocus in the show action view #193

luiscobot opened this issue Jan 6, 2024 · 2 comments

Comments

@luiscobot
Copy link
Contributor

luiscobot commented Jan 6, 2024

since the first task in the show view is to enter the secret token, maybe will be a good idea to add autofocus to the input, like in the new action view

<%= email_field_tag email_field_name,
params.fetch(email_field_name, nil),
required: true,
autofocus: true,
placeholder: t("passwordless.sessions.new.email.placeholder") %>

@mikker
Copy link
Owner

mikker commented Jan 8, 2024

Sure, PR welcome 👍

@mikker
Copy link
Owner

mikker commented Jan 8, 2024

Maybe add autocomplete="one-time-code" as well? https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants