File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
packages/mantine-react-table/src/components/inputs Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -100,20 +100,22 @@ export const MRT_GlobalFilterTextInput = <TData extends MRT_RowData>({
100100 onChange = { ( event ) => setSearchValue ( event . target . value ) }
101101 placeholder = { localization . search }
102102 rightSection = {
103- searchValue ? (
104- < ActionIcon
105- aria-label = { localization . clearSearch }
106- color = "gray"
107- disabled = { ! searchValue ?. length }
108- onClick = { handleClear }
109- size = "sm"
110- variant = "transparent"
111- >
112- < Tooltip label = { localization . clearSearch } withinPortal >
113- < IconX />
114- </ Tooltip >
115- </ ActionIcon >
116- ) : null
103+ < ActionIcon
104+ aria-label = { localization . clearSearch }
105+ color = "gray"
106+ disabled = { ! searchValue ?. length }
107+ hidden = { ! searchValue }
108+ onClick = { handleClear }
109+ size = "sm"
110+ style = { {
111+ visibility : ! searchValue ? 'hidden' : undefined ,
112+ } }
113+ variant = "transparent"
114+ >
115+ < Tooltip label = { localization . clearSearch } withinPortal >
116+ < IconX />
117+ </ Tooltip >
118+ </ ActionIcon >
117119 }
118120 value = { searchValue ?? '' }
119121 variant = "filled"
You can’t perform that action at this time.
0 commit comments