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

在文档最后时向后删除元素错误 #606

Closed
pinghe opened this issue May 27, 2024 · 2 comments
Closed

在文档最后时向后删除元素错误 #606

pinghe opened this issue May 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@pinghe
Copy link

pinghe commented May 27, 2024

version

0.9.79

Link to minimal reproduction

No response

Steps to reproduce

选中图片,按del键,无法删除。console 有错误

TypeError: Cannot read properties of undefined (reading 'control')
    at pr.spliceElementList (index.f2226bb5.js:84:137986)
    at so (index.f2226bb5.js:83:18273)
    at co (index.f2226bb5.js:83:26587)
    at Fo.keydown (index.f2226bb5.js:84:7609)
    at zs._keyDown (index.f2226bb5.js:83:2581)
    at n.onkeydown (index.f2226bb5.js:83:2284)

What is expected?

正常删除图片

What is actually happening?

未能删除

System Info

No response

Any additional comments?

No response

@Hufe921 Hufe921 changed the title 删除图片出错 在文档最后时向后删除元素错误 May 27, 2024
@Hufe921 Hufe921 added the bug Something isn't working label May 27, 2024
@Hufe921
Copy link
Owner

Hufe921 commented May 27, 2024

无法复现,发一下编辑器的数据,及详细操作步骤

@Hufe921 Hufe921 closed this as completed May 27, 2024
@pinghe
Copy link
Author

pinghe commented May 28, 2024

选中图片,按del键现在没有出错了,但没有删除图片,而是错误删除了图片后面的内容。
https://hufe.club/canvas-editor/ 这里做的测试

bug

@Hufe921

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants