Skip to content

Commit

Permalink
fix(Tab): click on tabs should not generate 'submit' event (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-efremoff authored Feb 10, 2025
1 parent 40b20c5 commit dd35766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const Tab = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, TabPr
}

return (
<button {...tabProps} ref={ref as React.Ref<HTMLButtonElement>}>
<button {...tabProps} type="button" ref={ref as React.Ref<HTMLButtonElement>}>
{content}
</button>
);
Expand Down

0 comments on commit dd35766

Please sign in to comment.