Skip to content

Commit

Permalink
fix: hide overlay on resize when search is open
Browse files Browse the repository at this point in the history
  • Loading branch information
hroth1994 committed Oct 31, 2024
1 parent f5df521 commit 2c73ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es-vue-base/src/lib-components/EsNavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default {
// Collapse all open menus on window resize
window.addEventListener('resize', () => {
if (mainMenuCheckbox.checked || accountMenuCheckbox.checked) {
if (mainMenuCheckbox.checked || accountMenuCheckbox.checked || searchBar.style.display !== 'none') {
collapse_mobile_menus();
}
});
Expand Down

0 comments on commit 2c73ecd

Please sign in to comment.