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

Items all dissapear in list #780

Closed
ReinAkane opened this issue Aug 16, 2017 · 14 comments
Closed

Items all dissapear in list #780

ReinAkane opened this issue Aug 16, 2017 · 14 comments
Labels

Comments

@ReinAkane
Copy link
Contributor

ReinAkane commented Aug 16, 2017

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.

  1. Open list example in Firefox.
  2. Scroll down (until originally visible items + overscan are not visible).
  3. Reduce Num rows until you don't have a scroll.
  4. Increase Num rows back to its previous value.
  5. Notice that no items are visible.

Scrolling at all immediately brings them back into view.

Gif of reproduction in examples:

virtualized_bug

edit: updated to specify the bug is only in Firefox.

@bvaughn
Copy link
Owner

bvaughn commented Aug 16, 2017

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?

@bvaughn bvaughn added the bug label Aug 16, 2017
@ReinAkane
Copy link
Contributor Author

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.

@ReinAkane
Copy link
Contributor Author

Can only reproduce in Firefox. Tried in Chrome, IE11, and Firefox all on windows.

@bvaughn
Copy link
Owner

bvaughn commented Aug 16, 2017

That's interesting.

@bvaughn
Copy link
Owner

bvaughn commented Aug 18, 2017

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.

@ReinAkane
Copy link
Contributor Author

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.

@bvaughn
Copy link
Owner

bvaughn commented Sep 1, 2017

Great! Thanks for the update.

@ReinAkane
Copy link
Contributor Author

ReinAkane commented Sep 1, 2017

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
If I remember to, I will try to test when I get home.

@bvaughn
Copy link
Owner

bvaughn commented Sep 1, 2017

So I've spent about two hours in a futile attempt to get tests to run at all.

yarn install
yarn test

@ReinAkane
Copy link
Contributor Author

I spent 30 minutes trying to get yarn to work, on a similarly futile attempt.

Instead I attempted

npm install
npm test

@bvaughn
Copy link
Owner

bvaughn commented Sep 1, 2017

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 😦

@ReinAkane ReinAkane reopened this Sep 1, 2017
@ReinAkane
Copy link
Contributor Author

(that misclick)

@ReinAkane
Copy link
Contributor Author

yarn works infinitely better on my personal computer than my corporate one. PR created.

@ReinAkane
Copy link
Contributor Author

Fixed in #798

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