mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Team Settings: Press enter submits to create team (#2195)
This commit is contained in:
parent
4ace3b4bc5
commit
fc00940660
2 changed files with 3 additions and 7 deletions
1
changes/issue-2078-enter-submits-create-team
Normal file
1
changes/issue-2078-enter-submits-create-team
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Fix create team modal to submit with Enter key
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue