fix: 修复上下移动高亮状态丢失问题

Change-Id: Id4963402ba05b654dc03f8fcb733b72629f05ec1
This commit is contained in:
wibetter 2022-07-05 15:19:21 +08:00
parent 7cd294a0ed
commit f8333e2308

View File

@ -1158,9 +1158,9 @@ export class EditorManager {
const event = this.trigger('before-move', context);
if (!event.prevented) {
store.moveUp(node.id);
this.buildToolbars();
// this.buildToolbars();
this.trigger('after-move', context);
this.trigger('after-update', context);
}
}
@ -1189,9 +1189,9 @@ export class EditorManager {
const event = this.trigger('before-move', context);
if (!event.prevented) {
store.moveDown(node.id);
this.buildToolbars();
// this.buildToolbars();
this.trigger('after-move', context);
this.trigger('after-update', context);
}
}