File tree 1 file changed +5
-23
lines changed
packages/mui-material/src/TextField
1 file changed +5
-23
lines changed Original file line number Diff line number Diff line change @@ -142,30 +142,12 @@ const TextField = React.forwardRef(function TextField(inProps, ref) {
142
142
const externalForwardedProps = {
143
143
slots,
144
144
slotProps : {
145
+ input : InputPropsProp ,
146
+ inputLabel : InputLabelPropsProp ,
147
+ htmlInput : inputPropsProp ,
148
+ formHelperText : FormHelperTextPropsProp ,
149
+ select : SelectPropsProp ,
145
150
...slotProps ,
146
- input :
147
- typeof slotProps . input === 'function'
148
- ? slotProps . input
149
- : { ...( InputPropsProp ?? { } ) , ...( slotProps . input ?? { } ) } ,
150
- inputLabel :
151
- typeof slotProps . inputLabel === 'function'
152
- ? slotProps . inputLabel
153
- : { ...( InputLabelPropsProp ?? { } ) , ...( slotProps . inputLabel ?? { } ) } ,
154
- htmlInput :
155
- typeof slotProps . htmlInput === 'function'
156
- ? slotProps . htmlInput
157
- : { ...( inputPropsProp ?? { } ) , ...( slotProps . htmlInput ?? { } ) } ,
158
- formHelperText :
159
- typeof slotProps . formHelperText === 'function'
160
- ? slotProps . formHelperText
161
- : {
162
- ...( FormHelperTextPropsProp ?? { } ) ,
163
- ...( slotProps . formHelperText ?? { } ) ,
164
- } ,
165
- select :
166
- typeof slotProps . select === 'function'
167
- ? slotProps . select
168
- : { ...( SelectPropsProp ?? { } ) , ...( slotProps . select ?? { } ) } ,
169
151
} ,
170
152
} ;
171
153
You can’t perform that action at this time.
0 commit comments