usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.8k stars 2.59k forks source link

"onexit" event still being fired on overlay click when "exitOnOverlayClick" is set to false #144

Closed nnieman closed 7 years ago

nnieman commented 11 years ago

If the "exitOnOverlayClick" option is set to false, when the user clicks the overlay (which would close the intro if "exitOnOverlayClick" were not false) the onexit event fires. This is not expected behavior as the intro has not actually exited.

Code demonstrating problem:

var intro = introJs();

intro.setOptions({
  exitOnOverlayClick: false
});

intro.onexit(function() {
  alert("intro has exited");
});

intro.start();
ghost commented 10 years ago

I see the same problem as you. Right now I have not found a solution, but it is evident that this must be corrected in the new version.

Chintub commented 7 years ago

This below code is working.

.introjs-overlay { pointer-events:none; }

bozdoz commented 7 years ago

The above code appears to be working: https://jsfiddle.net/bozdoz/s2mrfw7f/4/

Perhaps it has already been resolved in a more current version. Thanks!