Skip to content

Pressing left arrow key on first step closes tour #564

Open
@jarikmarwede

Description

@jarikmarwede

When pressing the left arrow key on the first step of a tour, the tour is destroyed. I think this should not be possible, because this behavior is different to the button navigation, which disables the "Previous" button on the first step.

It also ignores the allowClose configuration option. So, a tour that should not be closed by the user unless you reach the end can still be closed immediately if keyboard navigation is enabled.

The reason for this behavior is that the movePrevious function destroys the tour if there is no previous step, and there are no checks for preventing this in the handleArrowLeft function.

destroy();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions