Skip to content

Commit da76d4a

Browse files
vaibhavsuranaVaibhav Surana
authored andcommitted
Allow override slot properties of input in MRT_FilterTextField (KevinVandy#1378)
Co-authored-by: Vaibhav Surana <[email protected]>
1 parent 1c7066c commit da76d4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
343343
...textFieldProps.slotProps?.formHelperText,
344344
},
345345
input: endAdornment //hack because mui looks for presence of endAdornment key instead of undefined
346-
? { endAdornment, startAdornment }
347-
: { startAdornment },
346+
? {endAdornment, startAdornment, ...textFieldProps.slotProps?.input}
347+
: {startAdornment, ...textFieldProps.slotProps?.input},
348348
htmlInput: {
349349
'aria-label': filterPlaceholder,
350350
autoComplete: 'off',

0 commit comments

Comments
 (0)