Comments (9)
Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.
from primereact.
added demonstrator projet ( see in issue description "Reproducer")
from primereact.
@mamsellem PR is welcome if you have a recommended fix?
from primereact.
sure. I will submit a PR when possible
from primereact.
Hello I tried to submit a PR from my fork of primereact that it failed with error "you must be a contributor".
This is a screenshot of the submission screen
from primereact.
Weird I have never seen that before it should allow you to open a PR from a fork no problem?
from primereact.
@mamsellem i pushed PR if you want to review.
from primereact.
I don't think using deepequals is a good idea.
We are only interesteed in updating the bounds of the virtual scroller, so only the dimensions of the items matter, not the items themselves.
This was my fix for this issue:
line 570 of VirtualScroll.js
useUpdateEffect(() => {
if (!prevProps.items || prevProps.items.length !== (props.items || []).length || (both && prevProps.items[0].length !== (props.items ? props.items[0].length : 0))) {
init();
}
What do you think ?
from primereact.
as mentioned props.items[0]
feels hacky to check the first item of the array length.
from primereact.
Related Issues (20)
- Password component width class w-full HOT 2
- Timeline: Last item placed incorrectly
- Spinner/Loader animation doesn't work HOT 5
- DataTable in Dialog reads everything in dialog (with NVDA tool)
- Carousel: : Bug Report - PrimeReact Carousel Sliding Function Interruption on Radio Button Click
- Dropdown: can't use "checkIcon" pt option HOT 1
- Tree Node Drag & Drop Keyboard Support HOT 3
- OTPInput Keyboard Support in Forms HOT 1
- AutoComplete: selectedItemTemplate displays [Object object]
- DataTable: Reorderable Column Drop Effect Incorrect When Hovering Table Body
- Tooltip crashes when position='mouse' and it changes
- Recently created components in v10+ aren't exported in primereact.all.js HOT 1
- Datatable: Header button icons not rendering properly sometimes HOT 4
- TreeTable: frozen column support for column grouping.
- Galleria: Galleria image in fullscreen mode not closing on escape button click
- DataTable: PageLinks uses prop pageCount instead of totalPages HOT 2
- Tooltip: Crashes when `position` prop is `undefined` HOT 1
- MultiSelect: Duplicate Labels in MultiSelect Component Cause Errors HOT 1
- Calendar: Incorrect styling when selecting month/year range HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primereact.