Skip to content

Commit

Permalink
removed pr automatically added in filter select
Browse files Browse the repository at this point in the history
- also, moved the IconComponent SelectProps to a location more consistent with other SelectProps
  • Loading branch information
loughlinclaus3 committed Feb 27, 2024
1 parent e403693 commit 18af8af
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -353,10 +353,6 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
? undefined
: filterPlaceholder,
variant: 'standard',
SelectProps: {
IconComponent: () => <ArrowDropDownIcon />,
...textFieldProps.SelectProps,
},
...textFieldProps,
sx: (theme) => ({
minWidth: isDateFilter
Expand Down Expand Up @@ -472,6 +468,8 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
MenuProps: { disableScrollLock: true },
displayEmpty: true,
multiple: isMultiSelectFilter,
SelectDisplayProps: { style: { paddingRight: 0 } },
IconComponent: () => <ArrowDropDownIcon />,
renderValue: isMultiSelectFilter
? (selected: any) =>
!selected?.length ? (
Expand Down

0 comments on commit 18af8af

Please sign in to comment.