-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
第二次调用fromJSON 报错 Cannot read properties of null (reading 'getZIndex') #2210
Comments
👋 @thorin8 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
已通过重写方法解决
|
Hello! 可以提供一个代码重现吗?可以使用这个 CodeSandbox 模版 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
问题描述
经调试发现是renderer.js 828行,如下代码问题
this.sortElements(elems, (a, b) => {
// 重写代码
// let indexA = a.zIndex;
// let indexB = b.zIndex;
// return indexA==indexB?0:indexA<indexB?-1:1;
});
重现链接
无
重现步骤
预期行为
我期望不报错
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: