Skip to content

Commit

Permalink
fix when clicking version dropdown it jumps to top of the page (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Shi authored and AntiZpvoh committed Jul 6, 2020
1 parent 4025987 commit 70dde10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/static_site/src/assets/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,8 @@ $(document).ready(function () {
.mouseenter(toggleDropdown.bind(null, true))
.mouseleave(toggleDropdown.bind(null, false))
.click(function() {$(".version-dropdown").toggle()});

$("ul.version-dropdown").click(function(e) {
e.preventDefault();
});
});

0 comments on commit 70dde10

Please sign in to comment.