butane-combobox
Advanced tools
Comparing version 1.0.0-1 to 1.0.0-2
@@ -108,7 +108,6 @@ 'use strict'; | ||
e.target.closest('[data-butane-combobox-input]') && | ||
e.code === 'ArrowDown' && | ||
!this.menuIsVisible | ||
e.code === 'ArrowDown' | ||
) { | ||
e.preventDefault(); | ||
this.showMenu(); | ||
if (!this.menuIsVisible) this.showMenu(); | ||
this.focusFirstOption(); | ||
@@ -148,3 +147,7 @@ } | ||
handleInput(e) { | ||
this.renderMenuItems(e); | ||
if (this.menuIsVisible) { | ||
this.renderMenuItems(e); | ||
} else { | ||
this.showMenu(); | ||
} | ||
} | ||
@@ -151,0 +154,0 @@ |
@@ -104,7 +104,6 @@ import matchSorter from 'match-sorter'; | ||
e.target.closest('[data-butane-combobox-input]') && | ||
e.code === 'ArrowDown' && | ||
!this.menuIsVisible | ||
e.code === 'ArrowDown' | ||
) { | ||
e.preventDefault(); | ||
this.showMenu(); | ||
if (!this.menuIsVisible) this.showMenu(); | ||
this.focusFirstOption(); | ||
@@ -144,3 +143,7 @@ } | ||
handleInput(e) { | ||
this.renderMenuItems(e); | ||
if (this.menuIsVisible) { | ||
this.renderMenuItems(e); | ||
} else { | ||
this.showMenu(); | ||
} | ||
} | ||
@@ -147,0 +150,0 @@ |
@@ -1051,7 +1051,6 @@ (function (global, factory) { | ||
e.target.closest('[data-butane-combobox-input]') && | ||
e.code === 'ArrowDown' && | ||
!this.menuIsVisible | ||
e.code === 'ArrowDown' | ||
) { | ||
e.preventDefault(); | ||
this.showMenu(); | ||
if (!this.menuIsVisible) this.showMenu(); | ||
this.focusFirstOption(); | ||
@@ -1091,3 +1090,7 @@ } | ||
handleInput(e) { | ||
this.renderMenuItems(e); | ||
if (this.menuIsVisible) { | ||
this.renderMenuItems(e); | ||
} else { | ||
this.showMenu(); | ||
} | ||
} | ||
@@ -1094,0 +1097,0 @@ |
{ | ||
"name": "butane-combobox", | ||
"version": "1.0.0-1", | ||
"version": "1.0.0-2", | ||
"description": "An accessible lightweight combobox library", | ||
@@ -5,0 +5,0 @@ "main": "dist/butane-combobox.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89140
3085