diff --git a/src/Components/Input/Autocomplete.tsx b/src/Components/Input/Autocomplete.tsx index 3b2c29ed..1be8e51c 100644 --- a/src/Components/Input/Autocomplete.tsx +++ b/src/Components/Input/Autocomplete.tsx @@ -45,7 +45,6 @@ export const Autocomplete = ({ inputProps, suggestions, onSelected, pushFiltered } const handleKeyDown = (event) => { - event.preventDefault(); switch (event.key) { case 'ArrowDown': heighlightedSuggestion < filteredSuggestions.length-1 && setHeighlightedSuggestion(current => current +1) @@ -68,7 +67,7 @@ export const Autocomplete = ({ inputProps, suggestions, onSelected, pushFiltered return (
- handleChange(e)} tabindex="-1" onKeyDown={handleKeyDown}/> + handleChange(e)} tabIndex="-1" onKeyDown={handleKeyDown}/>