osstotalsoft / rocket-ui-ts

A collection of reusable and composable React components written in TypeScript built on top of Material UI Core V5
MIT License
19 stars 4 forks source link

Autocomplete's lazy loading problem #87

Closed cristidumitrescutotalsoft closed 12 months ago

cristidumitrescutotalsoft commented 1 year ago

Latest version

Current behavior

When using the Autocomplete's Lazy Loading Paginated feature and searching for a keyword, the second page loaded is not loading properly Photo1: Loading first page of responses image Photo2: Scrolling till the last few responses image Photo3: What happens if I scroll further image The second page is not empty, if I scroll on the unfiltered page, it loads more entries ending in "2"

Expected behavior

Pagination and filtering should work when scrolling.

Steps to reproduce

-Enter storybook -enter Inputs dropdown -enter Autocomplete dropdown -enter Docs dropdown -scroll until you wind the Lazy Loading Paginated -enter 2 -scroll in the autocomplete --not receive the desired outcome as described

Software Version

  1. Storybook: 7.0.20
  2. Rocket-UI: v0.1.39
  3. Material UI: 5.12.1
  4. React: 18.2.0
  5. NPM/YARN: 7.10.0/3.5.0

What browsers are you seeing the problem on?

No response