@github/auto-complete-element
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -272,2 +272,9 @@ function debounce(callback, wait) { | ||
if (selected.getAttribute('aria-disabled') === 'true') return; | ||
if (selected instanceof HTMLAnchorElement) { | ||
selected.click(); | ||
this.container.open = false; | ||
return; | ||
} | ||
var value = selected.getAttribute('data-autocomplete-value') || selected.textContent; | ||
@@ -274,0 +281,0 @@ this.container.value = value; |
@@ -278,2 +278,9 @@ (function (global, factory) { | ||
if (selected.getAttribute('aria-disabled') === 'true') return; | ||
if (selected instanceof HTMLAnchorElement) { | ||
selected.click(); | ||
this.container.open = false; | ||
return; | ||
} | ||
var value = selected.getAttribute('data-autocomplete-value') || selected.textContent; | ||
@@ -280,0 +287,0 @@ this.container.value = value; |
{ | ||
"name": "@github/auto-complete-element", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Auto-complete input values from server results", | ||
@@ -30,6 +30,6 @@ "repository": "github/auto-complete-element", | ||
"chai": "^4.1.2", | ||
"eslint": "^5.2.0", | ||
"eslint": "^5.3.0", | ||
"eslint-plugin-github": "^1.2.1", | ||
"flow-bin": "^0.77.0", | ||
"karma": "^2.0.5", | ||
"flow-bin": "^0.78.0", | ||
"karma": "^3.0.0", | ||
"karma-chai": "^0.1.0", | ||
@@ -40,5 +40,5 @@ "karma-chrome-launcher": "^2.2.0", | ||
"mocha": "^5.2.0", | ||
"rollup": "^0.63.5", | ||
"rollup": "^0.64.1", | ||
"rollup-plugin-babel": "^3.0.7" | ||
} | ||
} |
36965
938