mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 04:58:07 +00:00
gulp file changes and bug fix for clicking arrow on expand only
This commit is contained in:
+7
-3
@@ -193,10 +193,14 @@ const bootstrapNav = function () {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
// parent li rather then actual el clicked
|
||||
$(e.currentTarget).toggleClass('open');
|
||||
|
||||
$(e.target).find('>ul.tree-nav-sublist').toggleClass('hide');
|
||||
let sub = $(e.currentTarget).find('>ul.tree-nav-sublist')// || $(e.target).next('ul.tree-nav-sublist');
|
||||
if (sub.length > 0) {
|
||||
sub.toggleClass('hide');
|
||||
|
||||
// parent li rather then actual el clicked
|
||||
$(e.currentTarget).toggleClass('open');
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user