Skip to content

Commit

Permalink
refactor: bring element to front before collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx committed Aug 6, 2024
1 parent ac39067 commit 70f3fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/g6/src/runtime/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,7 @@ export class Graph extends EventEmitter {

const elementType = model.getElementType(id);

await this.frontElement(id);
this.isCollapsingExpanding = true;
this.setElementCollapsibility(id, true);
if (elementType === 'node') await element!.collapseNode(id, animation);
Expand Down

0 comments on commit 70f3fc7

Please sign in to comment.