Remove visible step from the DOM before Turbolinks caches the page
jabbett opened this issue · 0 comments
jabbett commented
Using this currently in app/assets/javascripts/application.js
:
$(document).on('turbolinks:before-cache', function() {
// Remove visible product tours
$(".shepherd-step").remove();
});