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

onclick/mouseover Jumps to top of the page #75

Open
iearnab opened this issue Aug 14, 2015 · 3 comments
Open

onclick/mouseover Jumps to top of the page #75

iearnab opened this issue Aug 14, 2015 · 3 comments

Comments

@iearnab
Copy link

iearnab commented Aug 14, 2015

Hi, I have created a fiddle https://jsfiddle.net/rs8b4hgu/9/ with the plugin when I hover/click(if event is click) over the tab items it jumps to top of the page. Found this bug on Safari 5.1.7 windows and Chrome latest.

@iearnab iearnab changed the title onclick/mouseover Jumps to of the page onclick/mouseover Jumps to top of the page Aug 24, 2015
@ghost
Copy link

ghost commented Dec 30, 2015

+1

@pdrittenhouse
Copy link

pdrittenhouse commented Mar 25, 2019

Having the same issue. I believe it's because of the # in the anchors. Is there any way to prevent this? Maybe use a data attribute instead of the href?

@pdrittenhouse
Copy link

I think something like this might resolve the issue

https://stackoverflow.com/questions/3503559/prevent-default-hash-behavior-on-page-load/3503621

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

2 participants