jellekralt / Responsive-Tabs

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
http://jellekralt.github.io/Responsive-Tabs/
MIT License
531 stars 227 forks source link

onclick/mouseover Jumps to top of the page #75

Open iearnab opened 9 years ago

iearnab commented 9 years ago

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.

ghost commented 8 years ago

+1

pdrittenhouse commented 5 years ago

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 commented 5 years ago

I think something like this might resolve the issue

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