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

Safari 浏览器在数据统计页面日历图组件报错 #919

Open
1pone opened this issue Jan 17, 2025 · 0 comments
Open

Safari 浏览器在数据统计页面日历图组件报错 #919

1pone opened this issue Jan 17, 2025 · 0 comments

Comments

@1pone
Copy link

1pone commented Jan 17, 2025

起因是我在尝试为这个项目做移动端适配,过程中发现在iPhone手机上打开数据统计页面会白屏报错,但是在电脑 Chrome 上测试没有问题。

进一步分析发现报错原因是 ActivityCalendar 接受到了不支持的空数组对象

Image

尝试修复后仅当data不为空的时候才渲染日历图组建,这时出现新的错误,页面直接崩溃,控制台没有明显报错。

Image

于是判断是 react-activity-calendar 组件在 Safari 浏览器存在问题,使用 Safari 浏览器打开该组件仓库storybook 报了同样的错误

Image

但是!使用 Safari 访问线上部署的数据统计页却不会报错,无法理解

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