Skip to content
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

fix(Tab): click on tabs should not generate 'submit' event #2103

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

ma-efremoff
Copy link
Contributor

No description provided.

@ma-efremoff ma-efremoff requested a review from amje February 10, 2025 10:13
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

@ma-efremoff ma-efremoff changed the title fix(Tab): use type="button" fix(Tab): click on tabs should not generate 'submit' event Feb 10, 2025
@@ -38,7 +38,7 @@ export const Tab = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, TabPr
}

return (
<button {...tabProps} ref={ref as React.Ref<HTMLButtonElement>}>
<button type="button" {...tabProps} ref={ref as React.Ref<HTMLButtonElement>}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Place this after tabProps spread to ensure this attribute

@ma-efremoff ma-efremoff marked this pull request as ready for review February 10, 2025 10:32
@amje amje merged commit dd35766 into main Feb 10, 2025
4 of 6 checks passed
@amje amje deleted the ma-efremoff/tab branch February 10, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants