Clear autocomplete input on selection accept (#12709)
* Clear autocomplete input on selection accept Fixes https://github.com/element-hq/element-web/issues/27194 * Playwright: use rust crypto for the bot user (#12708) ... because legacy crypto is legacy --------- Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
@@ -99,6 +99,8 @@ export const AutocompleteInput: React.FC<AutocompleteInputProps> = ({
|
||||
|
||||
onSelectionChange(newSelection);
|
||||
focusEditor();
|
||||
setQuery("");
|
||||
setSuggestions([]);
|
||||
};
|
||||
|
||||
const removeSelection = (completion: ICompletion): void => {
|
||||
|
||||
Reference in New Issue
Block a user