diff --git a/vite/src/views/customers2/components/table/customer-list/CustomerListSearchBar.tsx b/vite/src/views/customers2/components/table/customer-list/CustomerListSearchBar.tsx index 04988a495..3e9c707d1 100644 --- a/vite/src/views/customers2/components/table/customer-list/CustomerListSearchBar.tsx +++ b/vite/src/views/customers2/components/table/customer-list/CustomerListSearchBar.tsx @@ -43,11 +43,11 @@ export function CustomerListSearchBar() { /> { - const q = e.target.value.trim(); - setLocalQuery(q); - debouncedSearch(q); - }} + onChange={(e) => { + const raw = e.target.value; + setLocalQuery(raw); + debouncedSearch(raw.trim()); + }} className="pl-8! text-sm w-sm" placeholder={`Search ${Intl.NumberFormat("en-US").format(totalCount)} customers`} />