Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image toolbar上的操作会触发editor onChange #956

Open
jys125773 opened this issue Dec 1, 2021 · 0 comments
Open

image toolbar上的操作会触发editor onChange #956

jys125773 opened this issue Dec 1, 2021 · 0 comments

Comments

@jys125773
Copy link

多张图片并排,image toolbar hover触发展示的时候,不能保证editor editorLocked状态为true,会导致在image toolbar上的操作会事件冒泡到draft-js editor根内容div触发onChange,进而导致一系列bug。比如:输入图片宽度/高度会删除图片;点击toolbar会触发toolbar重新渲染。是否可以对src/renderers/atomics/Image/index.jsx showToolbar方法的lockEditor执行进行提升判断。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant