Skip to content

Commit

Permalink
add todo to switch out esc key constant
Browse files Browse the repository at this point in the history
  • Loading branch information
zebapy committed Apr 16, 2019
1 parent c6968c7 commit 51717a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Dropdown {
}

handleElemKeyup = e => {
// TODO: replace 27 with constant esc key
if (e.keyCode === 27) {
this.hide();
this.focusBtn();
Expand Down

0 comments on commit 51717a8

Please sign in to comment.