From f0f59489f02bdcdd8ddbc47d66d0af26401238c7 Mon Sep 17 00:00:00 2001 From: REJack Date: Tue, 29 Sep 2020 08:48:41 +0200 Subject: [PATCH] fix tab events --- build/js/IFrame.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build/js/IFrame.js b/build/js/IFrame.js index 9b0fa6ebe..8ecc6326a 100644 --- a/build/js/IFrame.js +++ b/build/js/IFrame.js @@ -190,23 +190,21 @@ class IFrame { }) $(document).on('click', SELECTOR_SIDEBAR_MENU_ITEM, e => { e.preventDefault() - this.onTabClick(e.target) this.openTabSidebar(e.target) }) if (this._config.useNavbarItems) { $(document).on('click', `${SELECTOR_HEADER_MENU_ITEM}, ${SELECTOR_HEADER_DROPDOWN_ITEM}`, e => { e.preventDefault() - this.onTabClick(e.target) this.openTabSidebar(e.target) }) - $(document).on('click', SELECTOR_TAB_NAVBAR_NAV_ITEM, e => { - e.preventDefault() - this.onTabClick(e.target) - this.switchTab(e.target) - }) } + $(document).on('click', SELECTOR_TAB_NAVBAR_NAV_ITEM, e => { + e.preventDefault() + this.onTabClick(e.target) + this.switchTab(e.target) + }) $(document).on('click', SELECTOR_DATA_TOGGLE_CLOSE, e => { e.preventDefault() this.removeActiveTab()