Skip to content

Conversation

@lukaskratzel
Copy link
Contributor

Add config option autoFocus to CorbadoAuth, SignUp and Login. It is optional and set to true by default so previous behavior stays consistent. If false, it will prevent autoFocus of input fields in both signup-init and login-init blocks, so only "entry" blocks are affected.

@lukaskratzel lukaskratzel force-pushed the 496-make-auto-focus-on-input-fields-configurable branch from 06438b8 to 1b3bf86 Compare January 21, 2025 09:09
@lukaskratzel lukaskratzel force-pushed the 496-make-auto-focus-on-input-fields-configurable branch from d59f36b to 5c76ecd Compare January 21, 2025 09:28
This reverts commit 5c76ecd.
onLoggedIn: () => void;
handleNavigationEvents?: boolean;
initialBlock?: 'signup-init' | 'login-init';
autoFocus?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

autoFocus => initialAutoFocus? (the name would then indicate that the setting only applies for "initial" blocks => i.e. login-init and signup-init)

@lukaskratzel lukaskratzel force-pushed the 496-make-auto-focus-on-input-fields-configurable branch 2 times, most recently from 2a22b38 to 1d22e0f Compare January 21, 2025 15:40
@lukaskratzel lukaskratzel force-pushed the 496-make-auto-focus-on-input-fields-configurable branch from 1d22e0f to 52132af Compare January 21, 2025 15:40
@lukaskratzel lukaskratzel merged commit 2cf7320 into develop Jan 21, 2025
1 check passed
@lukaskratzel lukaskratzel deleted the 496-make-auto-focus-on-input-fields-configurable branch January 21, 2025 16:10
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