fix input search
This commit is contained in:
@@ -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`}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user