Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix sign-in instead link on password reset page #9820

Merged
merged 4 commits into from
Dec 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import EmailField from "../../../views/auth/EmailField";
import { ErrorMessage } from "../../ErrorMessage";
import Spinner from "../../../views/elements/Spinner";
import Field from "../../../views/elements/Field";
import AccessibleButton from "../../../views/elements/AccessibleButton";
import AccessibleButton, { ButtonEvent } from "../../../views/elements/AccessibleButton";

interface EnterEmailProps {
email: string;
Expand Down Expand Up @@ -94,7 +94,10 @@ export const EnterEmail: React.FC<EnterEmailProps> = ({
className="mx_AuthBody_sign-in-instead-button"
element="button"
kind="link"
onClick={onLoginClick}
onClick={(e: ButtonEvent) => {
e.preventDefault();
onLoginClick();
}}
>
{_t("Sign in instead")}
</AccessibleButton>
Expand Down