Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Aug 9, 2023
1 parent 89d0db1 commit 48016b3
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
};
let currentlyVisibleSections = getSectionGroupActiveItems();
const attachSectionGroupsMenuListEvents = () => {
const items = doc.querySelectorAll(
'.ibexa-anchor-navigation-menu__section-groups--list .ibexa-switcher__item',
);
const items = doc.querySelectorAll('.ibexa-anchor-navigation-menu__section-groups--list .ibexa-switcher__item');

items.forEach((item) => item.addEventListener('click', onSelectSectionGroupsMenuList, false));
};
Expand All @@ -40,9 +38,7 @@
const onSelectSectionGroupsMenuList = (event) => {
const { targetId } = event.currentTarget.dataset;
const sectionsMenuNode = doc.querySelector(`.ibexa-anchor-navigation-menu__sections[data-id="${targetId}"]`);
const sectionGroupsMenuItems = doc.querySelectorAll(
'.ibexa-anchor-navigation-menu__section-groups--list .ibexa-switcher__item',
);
const sectionGroupsMenuItems = doc.querySelectorAll('.ibexa-anchor-navigation-menu__section-groups--list .ibexa-switcher__item');

sectionGroupsMenuItems.forEach((item) => {
item.classList.toggle('ibexa-switcher__item--active', item.isSameNode(event.currentTarget));
Expand Down

0 comments on commit 48016b3

Please sign in to comment.