mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
tag input issue
This commit is contained in:
parent
a5abb69d17
commit
c05c15ef11
@ -53,6 +53,7 @@ export const Autocomplete = ({ inputProps, suggestions, onSelected, pushFiltered
|
||||
heighlightedSuggestion>0 && setHeighlightedSuggestion(current => current -1)
|
||||
break;
|
||||
case 'Enter':
|
||||
event.preventDefault();
|
||||
if(filteredSuggestions.length > 0) {
|
||||
onSelected(filteredSuggestions[heighlightedSuggestion]);
|
||||
setHeighlightedSuggestion(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user