Skip to content

Add autofocus option to SupaEmailAuth #139

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

Merged

Conversation

O8O7
Copy link
Contributor

@O8O7 O8O7 commented Apr 24, 2025

What kind of change does this PR introduce?

Feature

What is the current behavior?

The email field is always focused when the form is displayed, which may not be desired in all cases.

What is the new behavior?

Adds an autofocus parameter to SupaEmailAuth to let developers control whether the email input field should be auto-focused on initial render.

The default value is true, maintaining the original behavior unless explicitly changed.

@O8O7 O8O7 changed the title feat: add autofocus option to SupaEmailAuth Add autofocus option to SupaEmailAuth Apr 24, 2025
Copy link
Member

@dshukertjr dshukertjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for the contribution! I will publish a new version tonight-ish

@dshukertjr dshukertjr merged commit 36eef70 into supabase-community:main Apr 25, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants