Skip to content

Commit 9b2d897

Browse files
Add Enter handling to Group create modal (#355) (#360)
Fixes https://issues.redhat.com/browse/AAH-229 (cherry picked from commit e576cdd) Co-authored-by: ZitaNemeckova <znemecko@redhat.com>
1 parent ab3378d commit 9b2d897

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/group-management/group-modal.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ export class GroupModal extends React.Component<IProps, IState> {
5959
</Button>,
6060
]}
6161
>
62-
<Form>
62+
<Form
63+
onSubmit={e => {
64+
e.preventDefault();
65+
onSave(this.state.name);
66+
}}
67+
>
6368
<FormGroup
6469
isRequired={true}
6570
key='name'

0 commit comments

Comments
 (0)