Skip to content

Commit 0bba2b3

Browse files
committedApr 13, 2022
bump version removed,rreview changes added
1 parent 2d4828b commit 0bba2b3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎dist/combobo.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports = class Combobo {
8181

8282
initEvents() {
8383
Emitter(this);
84-
if(!this.optionsWithKeyEventHandlers.has(this.input.id)){
84+
if(!this.optionsWithKeyEventHandlers.has(this.input)){
8585
this.input.addEventListener('click', () => {
8686
this.openList().goTo(this.getOptIndex() || 0); // ensure its open
8787
});
@@ -182,10 +182,10 @@ module.exports = class Combobo {
182182

183183
initKeys() {
184184
// keydown listener
185-
if(this.optionsWithKeyEventHandlers.has(this.input.id)){
185+
if(this.optionsWithKeyEventHandlers.has(this.input)){
186186
return;
187187
}else{
188-
this.optionsWithKeyEventHandlers.add(this.input.id);
188+
this.optionsWithKeyEventHandlers.add(this.input);
189189
}
190190
keyvent.down(this.input, [{
191191
keys: ['up', 'down'],

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "combobo",
3-
"version": "2.0.4",
3+
"version": "2.0.3",
44
"description": "Accessible combobox widget/plugin",
55
"main": "dist/combobo.js",
66
"directories": {

0 commit comments

Comments
 (0)
Please sign in to comment.