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

Make <TabbedForm tabs> use the onChange prop #10549

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

erwanMarmelab
Copy link
Contributor

Fixes #10532

@erwanMarmelab erwanMarmelab added the RFR Ready For Review label Feb 25, 2025
@erwanMarmelab erwanMarmelab changed the title Make <TabbedForm tabs> use the onChange prop Make <TabbedForm tabs> use the onChange prop Feb 25, 2025
@djhi djhi self-requested a review February 26, 2025 08:58
@@ -37,6 +37,9 @@ export const TabbedFormView = (props: TabbedFormViewProps): ReactElement => {
if (!syncWithLocation) {
setTabValue(value);
}
if (tabs.props.onChange) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We really should rewrite this component with contexts.

@djhi djhi added this to the 5.6.2 milestone Feb 26, 2025
@djhi djhi merged commit 67f534b into master Feb 26, 2025
16 checks passed
@djhi djhi deleted the fix/tabbedform_tabs_should_accept_onChange branch February 26, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TabbedForm: I cannot get the tabindex somehow when I click on the tabs
2 participants