diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index c5ecedcb..75251063 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -575,7 +575,11 @@ export class Core { // This use `prevent.checkLink` under the hood to get eligible link. const link = this._getLinkElement(e); - if (!link || (this.transitions.isRunning && this.preventRunning)) { + if (!link) { + return; + } + + if (this.transitions.isRunning && this.preventRunning) { e.preventDefault(); e.stopPropagation();