Stop click event from tab menu

Otherwise the hash location is cleared as the menu entries are link with
href="#".

issue7461
review42191002
This commit is contained in:
Cédric Krier committed 2018-05-29 10:30:32 +02:00
1 parent 24cd57c609
commit d3dffd7208
1 file changed
+2 -1
+2 -1
View File
@@ -139,7 +139,8 @@
'aria-hidden': 'true'
})).append(' ' + item.label).appendTo(menuitem);
this.menu_buttons[item.id] = menuitem;
link.click(function() {
link.click(function(evt) {
evt.preventDefault();
this[item.id]();
}.bind(this));
} else if (!item && previous) {