Skip to content

Commit 973e95a

Browse files
committed
tabs: fix after global jQuery removal matcornic#452
1 parent d1fcf21 commit 973e95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function switchTab(tabGroup, tabId) {
6868
// if event is undefined then switchTab was called from restoreTabSelection
6969
// so it's not a button event and we don't need to safe the selction or
7070
// prevent page jump
71-
var isButtonEvent = event != undefined;
71+
var isButtonEvent = event && event.target && event.target.getBoundingClientRect;
7272

7373
if(isButtonEvent){
7474
// save button position relative to viewport

0 commit comments

Comments
 (0)