From 973e95af07e55e02f08dda8bf218492e68e0ca1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 4 Feb 2023 00:04:42 +0100 Subject: [PATCH] tabs: fix after global jQuery removal #452 --- static/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/theme.js b/static/js/theme.js index f48552fce7..9e54d418e7 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -68,7 +68,7 @@ function switchTab(tabGroup, tabId) { // if event is undefined then switchTab was called from restoreTabSelection // so it's not a button event and we don't need to safe the selction or // prevent page jump - var isButtonEvent = event != undefined; + var isButtonEvent = event && event.target && event.target.getBoundingClientRect; if(isButtonEvent){ // save button position relative to viewport