Skip to content

Commit f3d8116

Browse files
committed
Fix onbeforechange callback receiving the wrong element
1 parent 53268fb commit f3d8116

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
@@ -164,7 +164,7 @@
164164
*/
165165
function _nextStep() {
166166
if (typeof (this._introBeforeChangeCallback) !== 'undefined') {
167-
this._introBeforeChangeCallback.call(this, this._targetElement);
167+
this._introBeforeChangeCallback.call(this, this._targetElement.element);
168168
}
169169

170170
if (typeof (this._currentStep) === 'undefined') {

0 commit comments

Comments
 (0)