You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a problem with the menu in some complex pages.
Situation: the menu is present on the page, but hidden (not visible) and the Document onClick event bubbles to the menu component and caused the error because it was not related to the menu itself.
The simple fix eliminated the problem: just make the extra checking in documentClick function (menu.vue file) like this:
documentClick: function documentClick(e) {
var element = document.querySelector('.bm-burger-button');
var target;
if(e && e.target) {
target = e.target;
}
else
{
target = null;
}
//var target = e.target;
if ( element && element !== target && !element.contains(target) && e.target.className !== 'bm-menu') {
this.closeMenu();
}
}
Please, include this fix if possible.
The text was updated successfully, but these errors were encountered:
I had a problem with the menu in some complex pages.
Situation: the menu is present on the page, but hidden (not visible) and the Document onClick event bubbles to the menu component and caused the error because it was not related to the menu itself.
The simple fix eliminated the problem: just make the extra checking in documentClick function (menu.vue file) like this:
Please, include this fix if possible.
The text was updated successfully, but these errors were encountered: