-
Notifications
You must be signed in to change notification settings - Fork 937
refactor: Update create workspace flow to allow creation from the workspaces page #1684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -35,7 +35,7 @@ export const FormFooter: React.FC<FormFooterProps> = ({ | |||
const styles = useStyles() | |||
return ( | |||
<div className={styles.footer}> | |||
<Button className={styles.button} onClick={onCancel} variant="outlined"> | |||
<Button type="button" className={styles.button} onClick={onCancel} variant="outlined"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question(blocking): Why is type="button"
needed here -- is it causing accidental submit ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, any button inside a form submits the form. I thought MUI would add the type="button" automatically but it does not so I have to explicitly say type="button".
Related to #1638
PS: This is only about the flow, a major "redesign" will come in a next PR.