Skip to content

Commit

Permalink
Removed not useful code
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Oct 12, 2023
1 parent db815db commit 42496cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions _dev/js/theme/components/responsive.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ function toggleMobileStyles() {
swapChildren(el, target);
}
});

document.querySelectorAll('[data-collapse-hide-mobile]:not(.show)').forEach((el) => el.classList.remove('collapse'));
document.querySelectorAll('[data-modal-hide-mobile].show').forEach((el) => el.classList.remove('show'));
}
prestashop.emit('responsive update', {
mobile: prestashop.responsive.mobile,
Expand Down
2 changes: 1 addition & 1 deletion modules/ps_mainmenu/ps_mainmenu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
{/if}
{if $node.children|count}
<div class="{if $depth === 0}main-menu__sub {/if} collapse d-md-block" data-collapse-hide-mobile
<div class="{if $depth === 0}main-menu__sub {/if} collapse d-md-block"
id="top_sub_menu_{$_expand_id}" role="group" aria-labelledby="{$node.page_identifier}"
aria-expanded="false" aria-hidden="true">
<div {if $depth === 0}class="menu-sub__content"{/if}>
Expand Down

0 comments on commit 42496cf

Please sign in to comment.