Skip to content

Commit

Permalink
fix: 修复右击菜单后报错 (baidu#10121)
Browse files Browse the repository at this point in the history
  • Loading branch information
F-jianchao authored Apr 26, 2024
1 parent ce03ffa commit 3a5be06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/amis-editor-core/src/component/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 3a5be06

Please sign in to comment.