barba icon indicating copy to clipboard operation
barba copied to clipboard

The `data-barba-prevent` attribute doesn't work on a `self` transition

Open xavierfoucrier opened this issue 2 years ago • 1 comments

When using a prevent data attribute on a link that run a self transition, the transition is not prevented.

Note that the prevent strategy work as expected, so currently you can prevent the transition from running by using event.preventDefault() followed by event.stopPropagation() inside the prevent callback.

xavierfoucrier avatar Mar 15 '23 15:03 xavierfoucrier