Skip to content

Commit

Permalink
fix: redo/undo
Browse files Browse the repository at this point in the history
  • Loading branch information
doouding committed Dec 17, 2024
1 parent 6c24bbf commit b2509e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/affine/block-surface/src/view/mindmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ export class MindMapView extends GfxElementModelView<MindmapElementModel> {
const latestNode = this.model.getNode(node.id);

if (latestNode && isOnElementBound(evt)) {
this.model.toggleCollapse(latestNode!);
this.model.requestLayout();
this.model.toggleCollapse(latestNode!, { layout: true });
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ export function syncElementFromY(
model['_preserved'].set(key, value);
props[key] = value;
oldValues[key] = oldValue;
} else {
model['_preserved'].delete(key);
oldValues[key] = oldValue;
}
});

Expand Down

0 comments on commit b2509e5

Please sign in to comment.