-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
List 8.6.x setting scrollTop breaks scrolling? #490
Comments
Potentially related to the 8.6.0 release, specifically PR #482. cc @bradchristensen, @mbrevda |
I'm at work still but I'll try to make time to look at this this evening. Worst case, I will revert the PR that introduced the regression and then we can work with @bradchristensen at getting it re-submitted. |
@bvaughn Have an evening :) and thanks for all your work! |
I had a similar issue in my I had apparently been setting the |
The use case you have would be broken by #482, because what you're doing is setting the component to be controlled (by defining the That being said though, as this is a breaking change for you and others, I think it would be wise to revert it for the 8.x release and re-release it with the next major version. Like @fritz-c mentioned, there are probably others also setting the |
@bradchristensen thanks for the clarification and makes total sense. I'd be happy with a Currently I'm feeding the scrollTop value passed to my onScroll handler back to List, but with Redux in the middle because I need to persist the position in the list across life cycles. So basically there are (throttled) actions periodically updating List's scrollTop and I've just been lucky its been ignoring those during scrolling. |
Agreed. This sounds like the correct way forward. I will put out a release with this change reverted. |
…the behavior regarding controlled/uncontrolled and props and in a way that was not backwards compatible. (See issue #490 for more.)
Fix released as 8.7.1. My apologies for the error. Thank you for reporting it so quickly, @bhj. And thanks for chiming in so quickly @bradchristensen and @fritz-c. |
thanks for the revert @bvaughn! @bradchristensen will you be opening another PR for the next major version with the desired changes? |
We can come back and reconsider this managed vs unmanaged topic in a few
months. I don't plan a major release anytime before the holidays at a
minimum. :)
…On Dec 3, 2016 9:45 PM, "Moshe Brevda" ***@***.***> wrote:
thanks for the revert @bvaughn <https://github.com/bvaughn>!
@bradchristensen <https://github.com/bradchristensen> will you be opening
another PR for the next major version with the desired changes?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABznZ4z-If1v79V8RB_tAXfFII65dNUks5rElN8gaJpZM4LDHT5>
.
|
Totally fine by me! Give me a cc when you're next planning a release and I'll be keen to get in there with a PR 😄 |
Hi, I have a List where I'm setting the initial position on mount via the scrollTop prop. Up through 8.5.3 it works fine, but with 8.6.0 and 8.6.1 no new rows are rendered while scrolling. It seems to be using the static scrollTop prop rather than the current position during a scroll when calculating which rows to render?
The text was updated successfully, but these errors were encountered: