goodteditor-ui 1.0.41 → 1.0.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goodteditor-ui",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -411,18 +411,19 @@ export default {
411
411
  onKeyDown(e) {
412
412
  let list = this.getDatalistRef();
413
413
  if (e.key === Key.ESC) {
414
+ if (this.popoverShow) {
415
+ e.stopPropagation();
416
+ }
414
417
  this.popoverShow = false;
415
418
  return;
416
419
  }
417
- if (e.key === Key.ENTER) {
418
- if (!this.popoverShow) {
419
- this.popoverShow = true;
420
- }
420
+ if (e.key === Key.ENTER && !this.popoverShow) {
421
+ this.popoverShow = true;
421
422
  }
422
423
  if (this.popoverShow) {
423
424
  list && list.onKeyDown(e);
424
425
  }
425
- },
426
- },
426
+ }
427
+ }
427
428
  };
428
429
  </script>