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
When I'm using bootstrap's navbar with data-navigo links, everything works fine, UNTIL I start using nav-item dropdowns. With Navigo the dropdown doesn't close, without, it closes as expected.
I could not attach HTML files, but the snippet below, added to an index.html file, includes all to illustrate the problem.
The problem lies in the stopPropagation method in Navigo, because if I comment out this line (see below) everything works fine.
if (!destroyed) {
e.preventDefault();
//e.stopPropagation();
self.navigate((0, _utils__WEBPACK_IMPORTED_MODULE_0__.clean)(location), options);
}
But I assume this line is there for a reason (links are removed programmatically)?
So, is there a cleaner fix to this problem?
Kind regards
Lars Plaul :-)
This is the same problem, as reported in #296
So same suggestion from me, as in this issue.
Make stopPropagation() optional, or remove it, if there is no need for it
When I'm using bootstrap's navbar with
data-navigo
links, everything works fine, UNTIL I start using nav-item dropdowns. With Navigo the dropdown doesn't close, without, it closes as expected.I could not attach HTML files, but the snippet below, added to an index.html file, includes all to illustrate the problem.
The problem lies in the stopPropagation method in Navigo, because if I comment out this line (see below) everything works fine.
But I assume this line is there for a reason (links are removed programmatically)?
So, is there a cleaner fix to this problem?
Kind regards
Lars Plaul :-)
The text was updated successfully, but these errors were encountered: