fix: the action of history would not update outline tree

This commit is contained in:
AndyJin 2023-07-12 11:27:37 +08:00 committed by JackLian
parent 7bde669510
commit a3ab0e4b24

View File

@ -30,6 +30,10 @@ export class Tree {
treeNode?.notifyExpandableChanged();
});
doc?.history.onChangeCursor(() => {
this.root?.notifyExpandableChanged();
});
doc?.onChangeNodeProp((info: IPublicTypePropChangeOptions) => {
const { node, key } = info;
if (key === '___title___') {