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

[Table] <Table useVirtual scrollToRow={n}> scrollToRow 更新的时候滚动条当前位置没有受控 #117

Closed
Leannechn opened this issue Dec 26, 2018 · 4 comments
Assignees
Labels
🐞 Bug Something isn't working

Comments

@Leannechn
Copy link

Describe the bug
<Table useVirtual scrollToRow={n}> scrollToRow 更新的时候滚动条当前位置没有受控。

Version of the Next Components
1.11.5

Reproduce URL
http://riddle.alibaba-inc.com/riddles/638ceda5

受控scrollToRow, onBodyScroll打印的不是当前位置,几个版本的表现都不大一致。总而言之,打印出来的不是当前位置。

@myronliu347
Copy link
Member

issues 的复现的地址尽量用外网地址吧,其他用户也可以看,
https://jsfiddle.net/
https://codepen.io/

@youluna
Copy link
Member

youluna commented Dec 27, 2018

提供riddle的用法不正确,正确用法 https://codepen.io/anon/pen/GPvjgr?editors=0010

更多用法参考 https://fusion.design/component/table

@Leannechn
Copy link
Author

@youluna youluna added the 🐞 Bug Something isn't working label Dec 27, 2018
@youluna
Copy link
Member

youluna commented Jan 2, 2019

We fix it in 1.11.7

@jdkahn jdkahn changed the title <Table useVirtual scrollToRow={n}> scrollToRow 更新的时候滚动条当前位置没有受控 [Table] <Table useVirtual scrollToRow={n}> scrollToRow 更新的时候滚动条当前位置没有受控 Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants