Skip to content

Commit dd4e6ba

Browse files
authored
fix(mui): apply SwitchProps to Switch component
In the current code, the SwitchProps are not being applied to the Switch component. We should apply these SwitchProps so that users can customize the behavior of the component as this was the original intent.
1 parent 31598da commit dd4e6ba

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)