Skip to content

Commit

Permalink
fix: init gantt item expaned
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeButterball committed Jul 25, 2020
1 parent 8457ab0 commit 37c2086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gantt/src/gantt-upper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export abstract class GanttUpper {
this.originItems = uniqBy(this.originItems, 'id');
// 根据上一次数据展开状态同步新的数据展开状态
this.originItems.forEach((item) => {
item.expanded = this.expandedItemIds.includes(item.id);
item.expanded = item.expanded || this.expandedItemIds.includes(item.id);
});
if (this.groups.length > 0) {
this.originItems.forEach((origin) => {
Expand Down

0 comments on commit 37c2086

Please sign in to comment.