Merge pull request #2167 from ecency/nt/username-autocomplete

fixes misfired user search
This commit is contained in:
Feruz M 2022-01-29 12:09:20 +02:00 committed by GitHub
commit 39789d57e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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});