utopia-ui 3.0.0-alpha.244 → 3.0.0-alpha.245

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4647,6 +4647,7 @@ var Autocomplete = function (_a) {
4647
4647
  onSelected(suggestion);
4648
4648
  }
4649
4649
  var handleKeyDown = function (event) {
4650
+ event.preventDefault();
4650
4651
  switch (event.key) {
4651
4652
  case 'ArrowDown':
4652
4653
  heighlightedSuggestion < filteredSuggestions.length - 1 && setHeighlightedSuggestion(function (current) { return current + 1; });
@@ -4655,7 +4656,6 @@ var Autocomplete = function (_a) {
4655
4656
  heighlightedSuggestion > 0 && setHeighlightedSuggestion(function (current) { return current - 1; });
4656
4657
  break;
4657
4658
  case 'Enter':
4658
- event.preventDefault();
4659
4659
  if (filteredSuggestions.length > 0) {
4660
4660
  onSelected(filteredSuggestions[heighlightedSuggestion]);
4661
4661
  setHeighlightedSuggestion(0);