-
-
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
Items all dissapear in list #780
Comments
I'm not able to reproduce this on the demo site, using Chrome or Safari. It seems to only happen for Firefox. Can you confirm if this is the browser you're using also? |
Let me try and reproduce in Chrome, as I have done so previously, but the examples reproduction was in Firefox. I'll try in all my browsers and let you know which I can and cannot reproduce in. |
Can only reproduce in Firefox. Tried in Chrome, IE11, and Firefox all on windows. |
That's interesting. |
I should add that my testing above was on Mac OS. So it seems like this issue affects Firefox on both platforms, but no other browsers. |
Working on a fix, hope to have a PR soon. The problem stems from the fact that when a container is shortened past the current scroll location Chrome fires a scroll event but Firefox does not. The fix we're going to try and make is to calculate our location when props change. |
Great! Thanks for the update. |
So I've spent about two hours in a futile attempt to get tests to run at all. Something deciding not to babelify. I spent 30 minutes trying to get yarn to work, on a similarly futile attempt. Here's the commit that fixes this issue: ReinAkane@f22ba14 |
yarn install
yarn test |
Instead I attempted
|
Right. This is why I use Yarn, to prevent transient problems with upstream dependencies. Yarn uses a lock file to ensure it installs specific versions of direct and indirect dependencies. FWIW, the CONTRIBUTING guide mentions Yarn specifically for this reason 😁 Really sorry to hear you wasted time due to this though 😦 |
(that misclick) |
|
Fixed in #798 |
Bug or runtime error
I have verified that this is occurring on master. I'll see about adding a failing unit test tonight. Error is reproducible in
react-virtualized
list example.Num rows
until you don't have a scroll.Num rows
back to its previous value.Scrolling at all immediately brings them back into view.
Gif of reproduction in examples:
edit: updated to specify the bug is only in Firefox.
The text was updated successfully, but these errors were encountered: