-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update combobox-nav package * chore: updates all dependencies
- Loading branch information
Showing
7 changed files
with
1,066 additions
and
2,022 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/node_modules/@github/combobox-nav/dist/index.js b/node_modules/@github/combobox-nav/dist/index.js | ||
index 977da72..8bc4667 100644 | ||
--- a/node_modules/@github/combobox-nav/dist/index.js | ||
+++ b/node_modules/@github/combobox-nav/dist/index.js | ||
@@ -34,7 +34,7 @@ export default class Combobox { | ||
this.input.addEventListener('compositionend', this.compositionEventHandler); | ||
this.input.addEventListener('input', this.inputHandler); | ||
this.input.addEventListener('keydown', this.keyboardEventHandler); | ||
- this.list.addEventListener('click', commitWithElement); | ||
+ this.list.addEventListener('mousedown', commitWithElement); | ||
this.indicateDefaultOption(); | ||
} | ||
stop() { | ||
@@ -44,7 +44,7 @@ export default class Combobox { | ||
this.input.removeEventListener('compositionend', this.compositionEventHandler); | ||
this.input.removeEventListener('input', this.inputHandler); | ||
this.input.removeEventListener('keydown', this.keyboardEventHandler); | ||
- this.list.removeEventListener('click', commitWithElement); | ||
+ this.list.removeEventListener('mousedown', commitWithElement); | ||
} | ||
indicateDefaultOption() { | ||
var _a; | ||
@@ -155,7 +155,7 @@ function commit(input, list) { | ||
return false; | ||
if (target.getAttribute('aria-disabled') === 'true') | ||
return true; | ||
- target.click(); | ||
+ fireCommitEvent(target) | ||
return true; | ||
} | ||
function fireCommitEvent(target, detail) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.