File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/material-renderers/src/controls Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ export const MaterialRadioGroup = (props: ControlProps & OwnPropsOfEnum) => {
65
65
focused ,
66
66
appliedUiSchemaOptions . showUnfocusedDescription
67
67
) ;
68
- const onChange = ( _ev : any , value : any ) => handleChange ( path , value ) ;
69
68
70
69
return (
71
70
< Hidden xsUp = { ! visible } >
@@ -87,12 +86,17 @@ export const MaterialRadioGroup = (props: ControlProps & OwnPropsOfEnum) => {
87
86
{ label }
88
87
</ FormLabel >
89
88
90
- < RadioGroup value = { props . data ?? '' } onChange = { onChange } row = { true } >
89
+ < RadioGroup value = { props . data ?? '' } row = { true } >
91
90
{ options . map ( ( option ) => (
92
91
< FormControlLabel
93
92
value = { option . value }
94
93
key = { option . label }
95
- control = { < Radio checked = { data === option . value } /> }
94
+ control = {
95
+ < Radio
96
+ checked = { data === option . value }
97
+ onChange = { ( ) => handleChange ( path , option . value ) }
98
+ />
99
+ }
96
100
label = { option . label }
97
101
disabled = { ! enabled }
98
102
/>
You can’t perform that action at this time.
0 commit comments