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

[DatePicker] 父级频繁刷新,enableTimePicker 时间面板的滑动有较大概率回到之前的位置 #432

Closed
forever-z-133 opened this issue Dec 12, 2023 · 1 comment
Labels

Comments

@forever-z-133
Copy link

tdesign 版本

0.45.1

重现链接

https://codesandbox.io/p/sandbox/tdesign-date-picker-re-render-djyvdr?file=%2FApp.js%3A6%2C26

重现步骤

点开选择面板,在小时区域滑动,有较大概率回到原来的位置。
比如从 9 开始滚动鼠标,滚到 20 的位置时,突然就又回到了 9。
可能原因是父级刷新时带动了 DatePicker 的重绘。

期望结果

在父级频繁刷新的情况下,只要 value 不变化,不诱发滚动位置的变化。

实际结果

No response

框架版本

React(18.0.0)

浏览器版本

Chrome(119.0.6045.199)

系统版本

MacOS(14.1.1)

Node版本

v16.19.0

补充说明

No response

@uyarn
Copy link
Collaborator

uyarn commented Dec 14, 2023

这个问题应该修复了很长一段时间了 麻烦升级下新版本呢

@uyarn uyarn added the fixed label Dec 14, 2023
@uyarn uyarn closed this as completed Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants