mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 12:38:05 +00:00
bug fix
This commit is contained in:
+2
-2
@@ -189,12 +189,12 @@ const bootstrapNav = function () {
|
||||
let target = e.target;
|
||||
|
||||
if (!target.href) {
|
||||
let sub = $(e.currentTarget).find('>ul.tree-nav-sublist');
|
||||
|
||||
// stop it from affecting other nodes
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
|
||||
let sub = $(e.currentTarget).find('>ul.tree-nav-sublist')// || $(e.target).next('ul.tree-nav-sublist');
|
||||
if (sub.length > 0) {
|
||||
sub.toggleClass('hide');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user