Skip to content

Commit e389cd2

Browse files
committed
fix: new diagram submittable form
1 parent 1717b95 commit e389cd2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/compass-data-modeling/src/components/new-diagram-form.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,16 @@ const FormStepContainer: React.FunctionComponent<{
5555
return (
5656
<>
5757
<ModalHeader title={title} subtitle={description}></ModalHeader>
58-
<ModalBody>{children}</ModalBody>
58+
<ModalBody>
59+
<form
60+
onSubmit={(e) => {
61+
e.preventDefault();
62+
onNextClick();
63+
}}
64+
>
65+
{children}
66+
</form>
67+
</ModalBody>
5968
<ModalFooter>
6069
<Button
6170
onClick={onNextClick}

0 commit comments

Comments
 (0)