Merge pull request #132 from matrix-org/fix-input-validation

Fix enter to submit behaviour
This commit is contained in:
Jorik Schellekens 2020-09-23 10:36:46 +01:00 committed by GitHub
commit 75476bce86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,6 @@ const LinkNotCreatedTile: React.FC<ILinkNotCreatedTileProps> = (
values.identifier
);
}}
validateOnChange={false}
>
{(formik): JSX.Element => (
<Form>
@ -127,7 +126,7 @@ const LinkCreatedTile: React.FC<ILinkCreatedTileProps> = (props) => {
onClick={(): void => props.setLink('')}
>
<div>New link</div>
<img src={refreshIcon} />
<img src={refreshIcon} alt="Go back to matrix.to home page" />
</button>
<a href={props.link}>
<h1>{props.link}</h1>