From b3716ddfbce8d85c8fc04cc11ad5a589e635f76d Mon Sep 17 00:00:00 2001 From: Ayush Rodrigues Date: Wed, 1 Apr 2026 12:15:25 +0100 Subject: [PATCH] fix input search --- .../table/customer-list/CustomerListSearchBar.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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`} />