Skip to content

Commit

Permalink
fix(core): 🚑 hotfix event propagation
Browse files Browse the repository at this point in the history
This fix #746.
  • Loading branch information
xavierfoucrier committed Aug 12, 2024
1 parent a92b594 commit 6d35aa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 6d35aa4

Please sign in to comment.