Skip to content

Commit 1b43571

Browse files
committed
Fix incorrect calling onExit callback when user clicks on overlay layer
1 parent 4743f30 commit 1b43571

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

intro.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,11 @@
678678
overlayLayer.onclick = function() {
679679
if (self._options.exitOnOverlayClick == true) {
680680
_exitIntro.call(self, targetElm);
681-
}
682-
//check if any callback is defined
683-
if (self._introExitCallback != undefined) {
684-
self._introExitCallback.call(self);
681+
682+
//check if any callback is defined
683+
if (self._introExitCallback != undefined) {
684+
self._introExitCallback.call(self);
685+
}
685686
}
686687
};
687688

0 commit comments

Comments
 (0)