Skip to content

Commit

Permalink
IBX-9459: [Left menu] it is possible for the tabs in left menu to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
OstafinL authored and tomaszszopinski committed Feb 26, 2025
1 parent 0714559 commit ea83177
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bundle/Resources/public/js/scripts/sidebar/main.menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@
const { itemName } = currentTarget.parentNode.dataset;

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

secondLevelMenuNode.addEventListener(
'transitionend',
() => {
secondLevelMenuNode.classList.add('ibexa-main-menu__navbar--hidden');
showedTabPanes.forEach((tabPane) => tabPane.classList.remove('active', 'show'));
animationController.abort();
},
{ signal },
Expand Down

0 comments on commit ea83177

Please sign in to comment.