0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

feat(ui): add submit input to all the sign-in & register forms (#1587)

enable submit on enter by adding submit input to all the forms
This commit is contained in:
simeng-li 2022-07-18 17:46:13 +08:00 committed by GitHub
parent c07833f999
commit 0c0c83cc8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View file

@ -123,6 +123,8 @@ const CreateAccount = ({ className, autoFocus }: Props) => {
<TermsOfUse className={styles.terms} />
<Button onClick={async () => onSubmitHandler()}>{t('action.create')}</Button>
<input hidden type="submit" />
</form>
);
};

View file

@ -120,6 +120,8 @@ const EmailPasswordless = ({ type, autoFocus, className }: Props) => {
<TermsOfUse className={styles.terms} />
<Button onClick={async () => onSubmitHandler()}>{t('action.continue')}</Button>
<input hidden type="submit" />
</form>
<PasswordlessConfirmModal
isOpen={showPasswordlessConfirmModal}

View file

@ -134,6 +134,8 @@ const PhonePasswordless = ({ type, autoFocus, className }: Props) => {
<TermsOfUse className={styles.terms} />
<Button onClick={async () => onSubmitHandler()}>{t('action.continue')}</Button>
<input hidden type="submit" />
</form>
<PasswordlessConfirmModal
isOpen={showPasswordlessConfirmModal}

View file

@ -115,6 +115,8 @@ const UsernameSignin = ({ className, autoFocus }: Props) => {
<TermsOfUse className={styles.terms} />
<Button onClick={async () => onSubmitHandler()}>{t('action.sign_in')}</Button>
<input hidden type="submit" />
</form>
);
};