Skip to content

Commit

Permalink
Fix: Prevent StepperHeader from submitting form
Browse files Browse the repository at this point in the history
When using the Stepper component wrapped in a form, clicking the StepperHeader will submit the form. This is a fix for this issue.
  • Loading branch information
espezaliate authored Apr 24, 2024
1 parent 713639b commit cda0854
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/stepper/StepperHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const StepperHeader = React.memo(
id: props.id,
className: cx('stepper.action'),
role: 'tab',
type: 'button',
tabIndex: props.disabled ? -1 : undefined,
'aria-controls': props.ariaControls,
onClick: (e) => props.clickCallback(e, props.index)
Expand Down

0 comments on commit cda0854

Please sign in to comment.