tabs: fix after global jQuery removal #452

This commit is contained in:
Sören Weber 2023-02-04 00:04:42 +01:00
parent d1fcf21461
commit 973e95af07
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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