The `data-barba-prevent` attribute doesn't work on a `self` transition
Author: xavierfoucrierCreated Mar 15, 2023Updated Aug 12, 2024
Labelsbug@barba/core
When using a prevent data attribute on a link that run a self transition, the transition is not prevented.
Note that the
preventstrategy work as expected, so currently you can prevent the transition from running by usingevent.preventDefault()followed byevent.stopPropagation()inside thepreventcallback.
Source: barbajs/barba