Skip to content

Commit

Permalink
esc test passing with stopImmediatePropagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Graham Walker committed Oct 21, 2017
1 parent 5f36a80 commit 8112461
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/components/ember-tooltip-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ export default Component.extend({
}

this._addEventListener('keydown', (keyEvent) => {

keyEvent.stopImmediatePropagation(); /* So this callback only fires once per keydown */

if (keyEvent.which === 27) {
Expand Down

0 comments on commit 8112461

Please sign in to comment.