@finema/core 2.27.0 → 2.29.0

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/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.27.0",
3
+ "version": "2.29.0",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import * as lodash from 'lodash-es';
4
4
  import * as theme from '../dist/runtime/theme/index.js';
5
5
 
6
6
  const name = "@finema/core";
7
- const version = "2.27.0";
7
+ const version = "2.29.0";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -177,10 +177,12 @@ const onKeydown = (event) => {
177
177
  scrollToSelectedSuggestion();
178
178
  break;
179
179
  case "Enter":
180
+ if (selectedSuggestionIndex.value === -1) {
181
+ return;
182
+ }
180
183
  event.preventDefault();
181
184
  if (selectedSuggestionIndex.value >= 0) {
182
185
  selectSuggestion(filteredSuggestions.value[selectedSuggestionIndex.value], selectedSuggestionIndex.value);
183
- emits("selected", filteredSuggestions.value[selectedSuggestionIndex.value]);
184
186
  }
185
187
  break;
186
188
  case "Escape":
@@ -194,6 +196,7 @@ const selectSuggestion = (suggestion, index) => {
194
196
  scrollToSuggestionByIndex(index);
195
197
  }
196
198
  handleChange(suggestion);
199
+ emits("selected", suggestion);
197
200
  emits("change", suggestion);
198
201
  showSuggestions.value = false;
199
202
  selectedSuggestionIndex.value = -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.27.0",
3
+ "version": "2.29.0",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",