@github/auto-complete-element
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -204,4 +204,7 @@ function debounce(callback, wait) { | ||
case 'Escape': | ||
this.container.open = false; | ||
event.preventDefault(); | ||
if (this.container.open) { | ||
this.container.open = false; | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
} | ||
break; | ||
@@ -247,3 +250,3 @@ case 'ArrowDown': | ||
var _selected = this.results.querySelector('[aria-selected="true"]'); | ||
if (_selected) { | ||
if (_selected && this.container.open) { | ||
this.commit(_selected); | ||
@@ -250,0 +253,0 @@ event.preventDefault(); |
@@ -210,4 +210,7 @@ (function (global, factory) { | ||
case 'Escape': | ||
this.container.open = false; | ||
event.preventDefault(); | ||
if (this.container.open) { | ||
this.container.open = false; | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
} | ||
break; | ||
@@ -253,3 +256,3 @@ case 'ArrowDown': | ||
var _selected = this.results.querySelector('[aria-selected="true"]'); | ||
if (_selected) { | ||
if (_selected && this.container.open) { | ||
this.commit(_selected); | ||
@@ -256,0 +259,0 @@ event.preventDefault(); |
{ | ||
"name": "@github/auto-complete-element", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Auto-complete input values from server results", | ||
@@ -30,6 +30,6 @@ "repository": "github/auto-complete-element", | ||
"chai": "^4.1.2", | ||
"eslint": "^5.0.1", | ||
"eslint-plugin-github": "1.0.0", | ||
"flow-bin": "^0.75.0", | ||
"karma": "^2.0.4", | ||
"eslint": "^5.2.0", | ||
"eslint-plugin-github": "^1.2.1", | ||
"flow-bin": "^0.77.0", | ||
"karma": "^2.0.5", | ||
"karma-chai": "^0.1.0", | ||
@@ -40,5 +40,5 @@ "karma-chrome-launcher": "^2.2.0", | ||
"mocha": "^5.2.0", | ||
"rollup": "^0.62.0", | ||
"rollup-plugin-babel": "^3.0.5" | ||
"rollup": "^0.63.5", | ||
"rollup-plugin-babel": "^3.0.7" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
36675
928
0