mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 21:01:31 +03:00
Merge pull request #2167 from ecency/nt/username-autocomplete
fixes misfired user search
This commit is contained in:
commit
39789d57e8
@ -29,6 +29,7 @@ export const UsernameAutofillBar = ({text, selection, onApplyUsername}:Props) =>
|
||||
} else {
|
||||
setSearchedUsers([]);
|
||||
setQuery('')
|
||||
_handleUserSearch.cancel();
|
||||
}
|
||||
}
|
||||
}, [text, selection])
|
||||
@ -46,7 +47,7 @@ export const UsernameAutofillBar = ({text, selection, onApplyUsername}:Props) =>
|
||||
setSearchedUsers(users);
|
||||
}
|
||||
|
||||
}, 200);
|
||||
}, 200, {leading:true});
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user