We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1fcf21 commit 973e95aCopy full SHA for 973e95a
static/js/theme.js
@@ -68,7 +68,7 @@ function switchTab(tabGroup, tabId) {
68
// if event is undefined then switchTab was called from restoreTabSelection
69
// so it's not a button event and we don't need to safe the selction or
70
// prevent page jump
71
- var isButtonEvent = event != undefined;
+ var isButtonEvent = event && event.target && event.target.getBoundingClientRect;
72
73
if(isButtonEvent){
74
// save button position relative to viewport
0 commit comments