diff --git a/docs/assets/js/index/index.js b/docs/assets/js/index/index.js index 18dc296b4..7e9f0276d 100644 --- a/docs/assets/js/index/index.js +++ b/docs/assets/js/index/index.js @@ -25,9 +25,12 @@ $(function() { } }); - - - + // Disable links with href="#" inside
, so users can click on them + // to preview :active state without being scrolled up to the top of the page. + $('section a[href="#"]').click(function(e) { + e.preventDefault(); + e.stopPropagation(); + }); var firstInHistory = true;