Trim spaces on datatable search key (#12713)
This commit is contained in:
parent
2ab7846a4a
commit
795aaca64f
|
@ -42,7 +42,7 @@ export function DataTableToolbar<TData>({
|
||||||
className="max-w-64 mb-0 mr-auto rounded-md"
|
className="max-w-64 mb-0 mr-auto rounded-md"
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
value={(table.getColumn(searchKey)?.getFilterValue() as string) ?? ""}
|
value={(table.getColumn(searchKey)?.getFilterValue() as string) ?? ""}
|
||||||
onChange={(event) => table.getColumn(searchKey)?.setFilterValue(event.target.value)}
|
onChange={(event) => table.getColumn(searchKey)?.setFilterValue(event.target.value.trim())}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{isFiltered && (
|
{isFiltered && (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user