Skip to content

Commit

Permalink
Only add keydown listeners once
Browse files Browse the repository at this point in the history
Fixes #423
  • Loading branch information
RobbieTheWagner committed Jul 2, 2019
1 parent 583c488 commit 95e28cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ export class Step extends Evented {

this.el = this._createTooltipContent();

this._addKeyDownHandler(this.el);

if (this.options.advanceOn) {
this.bindAdvance();
}
Expand Down Expand Up @@ -473,8 +475,6 @@ export class Step extends Evented {

this.tooltip.show();
this.trigger('show');

this._addKeyDownHandler(this.el);
this.el.focus();
}

Expand Down

0 comments on commit 95e28cd

Please sign in to comment.