Skip to content

Commit

Permalink
fix bug in scrollTo function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielePala committed Feb 11, 2021
1 parent c126b1c commit beab5cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/cimdraw.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/cimTree.riot
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@
function shown(event) {
event.stopPropagation();
let elementEnter = d3.select(this.parentNode).filter(".CIM-object").select("ul");
if (elementEnter.selectAll("li.attribute").size() === 0) {
if (elementEnter.size() > 0 && elementEnter.selectAll("li.attribute").size() === 0) {
self.generateAttrsAndLinks(elementEnter);
}
scrollToVisible(targetUUID);
Expand Down

0 comments on commit beab5cc

Please sign in to comment.