Skip to content

Commit fb7d832

Browse files
authored
Merge pull request #1381 from danielwarke/patch-2
fix(mui): apply SwitchProps to Switch component
2 parents 31598da + dd4e6ba commit fb7d832

File tree

1 file changed

+1
-0
lines changed
  • packages/mui-component-mapper/src/switch

1 file changed

+1
-0
lines changed

packages/mui-component-mapper/src/switch/switch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const Switch = (props) => {
4747
readOnly={isReadOnly}
4848
disabled={isDisabled || isReadOnly}
4949
onChange={({ target: { checked } }) => input.onChange(checked)}
50+
{...SwitchProps}
5051
/>
5152
}
5253
label={<FormLabel {...FormLabelProps}>{input.checked ? onText || label : offText || label}</FormLabel>}

0 commit comments

Comments
 (0)