mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
tabs: fix after global jQuery removal #452
This commit is contained in:
parent
d1fcf21461
commit
973e95af07
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ function switchTab(tabGroup, tabId) {
|
||||||
// if event is undefined then switchTab was called from restoreTabSelection
|
// 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
|
// so it's not a button event and we don't need to safe the selction or
|
||||||
// prevent page jump
|
// prevent page jump
|
||||||
var isButtonEvent = event != undefined;
|
var isButtonEvent = event && event.target && event.target.getBoundingClientRect;
|
||||||
|
|
||||||
if(isButtonEvent){
|
if(isButtonEvent){
|
||||||
// save button position relative to viewport
|
// save button position relative to viewport
|
||||||
|
|
Loading…
Reference in a new issue