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

amis editor重做(redo)操作只能进行一次 #11428

Open
l1ax opened this issue Dec 25, 2024 · 1 comment
Open

amis editor重做(redo)操作只能进行一次 #11428

l1ax opened this issue Dec 25, 2024 · 1 comment

Comments

@l1ax
Copy link

l1ax commented Dec 25, 2024

描述问题:

amis editor恢复(redo)操作只能进行一次

如何复现:

  1. 空画布
image 2. 增加两个文本框 image
  1. 撤销两次,并重做redo一次,redo按钮被disabled
image

原因

redo后会触发画布patchSchema,patch完成后批量更新节点数据(batchChangeValue方法)时,会调用traceableSetSchema,导致schemaHistory中,当前schema后的元素被删除。理论上redo应该不需要更新节点数据?
image

@lhtuling
Copy link

这要等官方修了。。。估计待会儿能修改
还是自己操作时候注意,虽然现在编辑器比之前已经好很多了,但是小bug还不少

Amis低代码前端框架交流群【QQ1群】:717791727
Amis低代码前端框架交流群【QQ2群】:721182449

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

No branches or pull requests

2 participants