Skip to content

Commit a9345e6

Browse files
authored
IBX-9459: [Left menu] it is possible for the tabs in left menu to merge (#1464)
1 parent 27c2579 commit a9345e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bundle/Resources/public/js/scripts/sidebar/main.menu.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@
5050
const { itemName } = currentTarget.parentNode.dataset;
5151

5252
if (activeItemName === itemName) {
53+
const showedTabPanes = doc.querySelectorAll('.ibexa-main-menu__tab-pane.active.show');
5354
const animationController = new AbortController();
5455
const { signal } = animationController;
5556

5657
secondLevelMenuNode.addEventListener(
5758
'transitionend',
5859
() => {
5960
secondLevelMenuNode.classList.add('ibexa-main-menu__navbar--hidden');
61+
showedTabPanes.forEach((tabPane) => tabPane.classList.remove('active', 'show'));
6062
animationController.abort();
6163
},
6264
{ signal },

0 commit comments

Comments
 (0)