Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for an issue with expanding of previous expanded test items when a user clicks on a different item (fixes #575) #1113

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -113,7 +113,11 @@ class TreeView extends View {
el.toggleClass('node__expanded', this.state.has(uid));
});
this.$('.node__title_active').parents('.node').toggleClass('node__expanded', true);
this.$('.node__expanded').parents('.node').toggleClass('node__expanded', true);
if (this.$('.node').parents('.node__expanded').length > 0) {
this.$('.node__expanded').parents('div.node.node__expanded').toggleClass('node__expanded', true);
} else {
this.$('.node__expanded').parents('.node').toggleClass('node__expanded', true);
}
}

findElement(treeNode) {
Expand Down