Hufe921 / canvas-editor

rich text editor by canvas/svg
https://hufe.club/canvas-editor-docs
MIT License
3.43k stars 498 forks source link

修复表格中的输入控件清空值后,占位符渲染异常的问题 #687

Closed junestars closed 1 month ago

junestars commented 1 month ago

686 中控制台报错的原因是 position.getPositionContext() 方法返回的数据有误(控件在表格中,isTable 却为 false),这可能是因为调用 executeSetControlValue 时,上下文并不在相应的控件中导致的。

上面的提交并没有解决 getPositionContext() 的数据错误问题,只是规避了该方法的调用。

Hufe921 commented 1 month ago

这样写是对的优先使用传入的上下文信息