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

[BUG] isLastItemVisible is wrong #164

Closed
hasakilol opened this issue Sep 30, 2021 · 5 comments
Closed

[BUG] isLastItemVisible is wrong #164

hasakilol opened this issue Sep 30, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@hasakilol
Copy link

hasakilol commented Sep 30, 2021

Describe the bug
When I resize browser window, some items will be invisible. isItemVisible returns the correct value: false, however isLastItemVisible is always true.

Expected behavior
isLastItemVisible should return false, too.


Let me re-describle the bug because the former description is not correct:
When I add a new item, isLastItemVisible returns wrong value.

@asmyshlyaev177
Copy link
Owner

asmyshlyaev177 commented Sep 30, 2021

  1. What version of library? Browser version?
  2. If it version 2+ need to reproduce it on codesandbox or similar service.

@asmyshlyaev177 asmyshlyaev177 self-assigned this Sep 30, 2021
@asmyshlyaev177 asmyshlyaev177 added the bug Something isn't working label Sep 30, 2021
@hasakilol
Copy link
Author

Library version: 2.3.3
Browser: Latest Chrome

I will show you demo later.

@hasakilol
Copy link
Author

hasakilol commented Oct 12, 2021

https://codesandbox.io/s/trt9x?file=/src/arrows.tsx

  1. Observe code
    console.log('isLastItemVisible', isLastItemVisible);
    in file arrows.tsx
  2. It outputs correctly no matter how you scroll items.
  3. Click Add One More, a new item is created. Now the code outputs wrongly when you scroll to the right most side.

@hasakilol hasakilol changed the title [BUG] isLastItemVisible is always true [BUG] isLastItemVisible is wrong Oct 12, 2021
@asmyshlyaev177
Copy link
Owner

@hasakilol
Copy link
Author

Confirmed, thanks!

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

2 participants