Skip to content

Commit e130ed6

Browse files
committed
revert textfield logic
1 parent f9367be commit e130ed6

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

packages/mui-material/src/TextField/TextField.js

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -142,30 +142,12 @@ const TextField = React.forwardRef(function TextField(inProps, ref) {
142142
const externalForwardedProps = {
143143
slots,
144144
slotProps: {
145+
input: InputPropsProp,
146+
inputLabel: InputLabelPropsProp,
147+
htmlInput: inputPropsProp,
148+
formHelperText: FormHelperTextPropsProp,
149+
select: SelectPropsProp,
145150
...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 ?? {}) },
169151
},
170152
};
171153

0 commit comments

Comments
 (0)