Skip to content

Double click on prev/next executes link #187

@fritzmg

Description

@fritzmg

If you have a slideshow/gallery with a prev/next link in the Lightcase overlay and you click on prev or next in quick succession, then the actual href of these links gets executed. Since the href of these buttons is just # either of the following things will haben:

  • The browser scrolls to the top of the current page.
  • The browser interprets the href relative to a <base> if present and then loads the <base> (i.e. base href + #).

Here is an example: https://jsfiddle.net/wmyndutj/

To make the issue more visible I have also inserted a <base>. So when you double click the prev or next button, the browser will load a new URL.

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