fix: 修复右击菜单后报错 (#10121)

This commit is contained in:
F-jianchao 2024-04-26 11:56:19 +08:00 committed by 2betop
parent 7a95f404a4
commit a3bb852ccd

View File

@ -421,6 +421,7 @@ export default class Editor extends Component<EditorProps> {
// 右键菜单
@autobind
async handleContextMenu(e: React.MouseEvent<HTMLElement>) {
e.persist();
await closeContextMenus();
let targetId: string = '';
let region = '';