u
This commit is contained in:
@@ -110,14 +110,19 @@ export default class TextInput extends Component {
|
||||
|
||||
const { input: _unusedInput, ...restSlotProps } = (slotProps || {});
|
||||
|
||||
const hasLabelProps = Boolean(label || InputLabelProps || slotProps?.inputLabel);
|
||||
const mergedSlotProps = {
|
||||
...restSlotProps,
|
||||
...(resolvedInputProps ? { input: resolvedInputProps } : {}),
|
||||
inputLabel: {
|
||||
...(label ? { shrink: true } : {}),
|
||||
...InputLabelProps,
|
||||
...slotProps?.inputLabel,
|
||||
},
|
||||
...(hasLabelProps
|
||||
? {
|
||||
inputLabel: {
|
||||
...(label ? { shrink: true } : {}),
|
||||
...InputLabelProps,
|
||||
...slotProps?.inputLabel,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
htmlInput,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user