Skip to content

Commit 69a4325

Browse files
feat: add InputLabelProps
1 parent 09d3bb4 commit 69a4325

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/ra-ui-materialui/src/input/SelectArrayInput.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
type FormControlProps,
1717
Chip,
1818
OutlinedInput,
19+
InputLabelProps,
1920
} from '@mui/material';
2021
import {
2122
type ChoicesProps,
@@ -106,6 +107,7 @@ export const SelectArrayInput = (inProps: SelectArrayInputProps) => {
106107
format,
107108
helperText,
108109
label,
110+
InputLabelProps,
109111
isFetching: isFetchingProp,
110112
isLoading: isLoadingProp,
111113
isPending: isPendingProp,
@@ -308,6 +310,7 @@ export const SelectArrayInput = (inProps: SelectArrayInputProps) => {
308310
ref={inputLabel}
309311
id={`${id}-outlined-label`}
310312
htmlFor={id}
313+
{...InputLabelProps}
311314
>
312315
<FieldTitle
313316
label={label}
@@ -380,6 +383,7 @@ export type SelectArrayInputProps = ChoicesProps &
380383
Omit<CommonInputProps, 'source'> &
381384
Omit<FormControlProps, 'defaultValue' | 'onBlur' | 'onChange'> & {
382385
options?: SelectProps;
386+
InputLabelProps?: Omit<InputLabelProps, 'htmlFor' | 'id' | 'ref'>;
383387
source?: string;
384388
onChange?: (event: ChangeEvent<HTMLInputElement> | RaRecord) => void;
385389
};

0 commit comments

Comments
 (0)