-
Notifications
You must be signed in to change notification settings - Fork 375
Closed
Milestone
Description
Describe the problem
When a Wizard is used inside a form, clicking on a nav item causes the form to submit.
How do you reproduce the problem?
- Go to https://patternfly-labs.github.io/formik-pf/?path=/story/formik-pf-formikwizard--basic-wizard (or create a form with WizardNavItem in it)
- Enter name and click next
- Try to go back to the previous step by clicking the first nav item
The console warns about the nav button not having a type:
Warning: You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.
Expected behavior
The first step should not submit immediately on clicking
Is this issue blocking you?
List the workaround if there is one.
Screenshots
What is your environment?
All browsers
What is your product and what release date are you targeting?
Any other information?
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done