Skip to content
Snippets Groups Projects
Commit f883022c authored by Christophe Matthieu's avatar Christophe Matthieu Committed by qsm-odoo
Browse files

[FIX] web_tour: better simulate a click while running

Previous simulation was "mousedown" then "mouseup" then "click". It is
not enough for some feature (like bootstrap, web_editor...). These rely
to have a "mouseenter" before and a "mouseleave" after the click.
parent 0c2767c8
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ var RunningTourActionHelper = core.Class.extend({
if (href && href.length && href[0] !== "#" && values.$element.is("a") && href !== "javascript:void(0)") {
window.location.href = href;
} else {
values.$element.mousedown().mouseup().click();
values.$element.trigger("mouseenter").mousedown().mouseup().click().trigger("mouseleave");
}
},
_text: function (values, text) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment