app/javascript/kpop/turbo_actions.js in katalyst-kpop-3.0.2 vs app/javascript/kpop/turbo_actions.js in katalyst-kpop-3.1.0
- old
+ new
@@ -30,10 +30,13 @@
console.debug(
`kpop: redirecting ${this.target} to ${this.getAttribute("href")}`,
);
const a = document.createElement("A");
a.setAttribute("data-turbo-action", "replace");
- this.targetElements[0].delegate.navigateFrame(a, this.getAttribute("href"));
+ this.targetElements[0].delegate.linkClickIntercepted(
+ a,
+ this.getAttribute("href"),
+ );
} else {
if (DEBUG)
console.debug(`kpop: redirecting to ${this.getAttribute("href")}`);
Turbo.visit(this.getAttribute("href"), {
action: this.dataset.turboAction,