Skip to content

Commit 899c18e

Browse files
committed
Fix keydown event problem
1 parent 14f7a2f commit 899c18e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
showElement.className = showElement.className.replace(/introjs-[a-zA-Z]+/g, '').trim();
149149
}
150150
//clean listeners
151-
targetElement.onkeydown = null;
151+
window.onkeydown = null;
152152
//set the step to zero
153153
this._currentStep = undefined;
154154
//check if any callback is defined

0 commit comments

Comments
 (0)