Skip to content

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

@xavierfoucrier

Description

@xavierfoucrier

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.

Metadata

Metadata

Labels

@barba/core@barba/core pluginbugbug to fix

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions