Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double click on prev/next executes link #187

Open
fritzmg opened this issue Jun 14, 2021 · 0 comments
Open

Double click on prev/next executes link #187

fritzmg opened this issue Jun 14, 2021 · 0 comments

Comments

@fritzmg
Copy link
Contributor

fritzmg commented Jun 14, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant