fix input search

This commit is contained in:
Ayush Rodrigues
2026-04-01 12:15:25 +01:00
parent 36504c7580
commit b3716ddfbc

View File

@@ -43,11 +43,11 @@ export function CustomerListSearchBar() {
/> />
<Input <Input
value={localQuery} value={localQuery}
onChange={(e) => { onChange={(e) => {
const q = e.target.value.trim(); const raw = e.target.value;
setLocalQuery(q); setLocalQuery(raw);
debouncedSearch(q); debouncedSearch(raw.trim());
}} }}
className="pl-8! text-sm w-sm" className="pl-8! text-sm w-sm"
placeholder={`Search ${Intl.NumberFormat("en-US").format(totalCount)} customers`} placeholder={`Search ${Intl.NumberFormat("en-US").format(totalCount)} customers`}
/> />