Team Settings: Press enter submits to create team (#2195)

This commit is contained in:
RachelElysia 2021-09-23 13:09:43 -04:00 committed by GitHub
parent 4ace3b4bc5
commit fc00940660
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -0,0 +1 @@
- Fix create team modal to submit with Enter key

View file

@ -41,7 +41,7 @@ const CreateTeamModal = (props: ICreateTeamModalProps): JSX.Element => {
return (
<Modal title={"Create team"} onExit={onCancel} className={baseClass}>
<form className={`${baseClass}__form`}>
<form className={`${baseClass}__form`} onSubmit={onFormSubmit}>
<InputFieldWithIcon
autofocus
// error={errors.name}
@ -61,12 +61,7 @@ const CreateTeamModal = (props: ICreateTeamModalProps): JSX.Element => {
</p>
</InfoBanner>
<div className={`${baseClass}__btn-wrap`}>
<Button
className={`${baseClass}__btn`}
type="button"
variant="brand"
onClick={onFormSubmit}
>
<Button className={`${baseClass}__btn`} type="submit" variant="brand">
Create
</Button>
<Button