Skip to content

Commit

Permalink
fix: overlapping input label when filter select is outline
Browse files Browse the repository at this point in the history
As stated in the API Documentation of MUI https://mui.com/material-ui/api/select/#props the label should be shrunk when display empty is true.

I do not know why we need the display empty. If we remove it, the error also is removed. So you should consider what the use-case for displayEmpty really is.

Fixes: #1142
  • Loading branch information
fredericbahr committed Dec 22, 2024
1 parent b4a14f7 commit 0b3ec67
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,9 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
</Box>
)
: undefined,
...commonTextFieldProps.SelectProps,
},
inputLabel: {
shrink: isSelectFilter || isMultiSelectFilter,
},
}}
onChange={handleTextFieldChange}
Expand Down

0 comments on commit 0b3ec67

Please sign in to comment.