antvis/G6




The issue has been closed
官网时间轴Demo播放bug #4598
xhx12577 posted onGitHub
Describe the bug
- 趋势时间轴和简易时间轴,选择单个时间,连续点击 preBtn 播放,到第一个时间点后,代码报错
Uncaught TypeError: Cannot read properties of undefined (reading 'date')
- 刻度时间轴,选择单个刻度,连续点击 nextBtn 播放,到最后一个刻度后,代码报错
Uncaught TypeError: Cannot read properties of undefined (reading 'rect')
Your Example Website or App
https://g6.antv.antgroup.com/zh/examples/tool/timebar/#timebar
Steps to Reproduce the Bug or Issue
Bug 复现过程如描述
Expected behavior
- 趋势时间轴和简易时间轴,选择单个时间,连续点击 preBtn 播放,到第一个时间点后,点击 preBtn 不再进行播放,代码不报错
- 刻度时间轴,选择单个刻度,连续点击 nextBtn 播放,到最后一个刻度后,点击 nextBtn 不再进行播放,代码不报错
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Chrome
- Version: 114.0.5735.110
Additional context
No response