Skip to content

Commit

Permalink
[docs] Fix Select onChange call (mui#34408)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp authored and alexfauquette committed Oct 14, 2022
1 parent 384c757 commit 9b07245
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/data/joy/customization/approaches/ButtonThemes.js
Expand Up @@ -560,7 +560,7 @@ export default function ButtonThemes() {
}}
size="sm"
value={design}
onChange={setDesign}
onChange={(event, newValue) => setDesign(newValue)}
sx={{ minWidth: 160 }}
>
<Option value="github">GitHub</Option>
Expand Down
Expand Up @@ -115,7 +115,7 @@ export default function ButtonThemes() {
},
}}
value={preset}
onChange={setPreset}
onChange={(event, newValue) => setPreset(newValue)}
sx={{ minWidth: 160 }}
>
<Option value="">Default</Option>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/JoyUsageDemo.tsx
Expand Up @@ -438,7 +438,7 @@ export default function JoyUsageDemo<T extends { [k: string]: any } = {}>({
},
}}
value={(resolvedValue || 'none') as string}
onChange={(val) =>
onChange={(event, val) =>
setProps((latestProps) => ({
...latestProps,
[propName]: val,
Expand Down

0 comments on commit 9b07245

Please sign in to comment.