baidu / baidu/amis

amis-editor 升级到最新的版本6.3.0 编辑页面无法右键菜单

Open
#9,934 0 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:
amis-editor 升级到最新的版本,编辑页面右键无法显示导致错误

###版本
{
"amis": "6.3.0",
"amis-core": "6.3.0",
"amis-editor": "6.3.0",
"amis-editor-core": "6.3.0",
}

###错误
```
reused for performance reasons. If you're seeing this, you're accessing the property `target` on a released/nullified synthetic event. This is set to null. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling for more information.
printWarning @ react-dom.development.js:88
index.js:6 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'closest')
at r.eval (index.js:6:295537)
at step (tslib.js:191:27)
at Object.eval [as next] (tslib.js:172:57)
at fulfilled (tslib.js:162:62)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with amis, amis-core, amis-editor, and amis-editor-core at version 6.3.0, then inspect the amis-editor code or generated index.js around the reported closest call. Confirm that right-clicking in the edit page opens the context menu without the released/nullified synthetic event warning or null-property error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.