This commit is contained in:
seb
2026-10-05 12:40:02 +02:00
parent 8c5419c89e
commit 358d34ecab
3 changed files with 44 additions and 41 deletions

View File

@@ -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,
};