From d3dffd7208ac7ce8fe5fe775d9c150c91d2db528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 29 May 2018 10:30:32 +0200 Subject: [PATCH] Stop click event from tab menu Otherwise the hash location is cleared as the menu entries are link with href="#". issue7461 review42191002 --- src/tab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tab.js b/src/tab.js index fec3684ed0..bc11ead3d4 100644 --- a/src/tab.js +++ b/src/tab.js @@ -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) {