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

[docs] Fix wrong description for UseTabParameters.onChange #42749

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/translations/api-docs/use-tab/use-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": {
"description": "The id of the tab. If not provided, it will be automatically generated."
},
"onChange": { "description": "If <code>true</code>, the tab will be disabled." },
"onChange": { "description": "Callback invoked when new value is being set." },
"onClick": { "description": "Callback fired when the tab is clicked." },
"rootRef": { "description": "Ref to the root slot&#39;s DOM element." },
"value": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/useTab/useTab.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface UseTabParameters {
*/
value?: number | string;
/**
* If `true`, the tab will be disabled.
* Callback invoked when new value is being set.
*/
onChange?: (event: React.SyntheticEvent, value: number | string) => void;
/**
Expand Down