Home › Forums › CSS › e.preventdefault stops links and when removed, tabs stops working. › Re: e.preventdefault stops links and when removed, tabs stops working.
July 15, 2012 at 5:44 pm #106158
I’m not really sure why you put a preventDefault on an LI in the first place — the default action of clicking on an LI is nothing, so there’s nothing to prevent.
If there is an anchor/link in your LI that you’re clicking on, that would make more sense to me, so maybe you should target that, and put the function (and preventDefault) on the
Regardless, using your code in a fiddle seems to work: http://jsfiddle.net/senff/Ly5C5/1/ so there’s probably something else going on there.