You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using rowClick row data should be of the clicked row.
What is the current behavior?
When using RouteReuseStrategy with route caching, PblNgridRowEvent event.root?.context?.row returns data of the rows around clicked row (and first time the row itself) when you return to the grid page.
What are the steps to reproduce?
Scroll a little (to ~140). Click on a row. Go back and find the row and click again (maybe multiple times). In the console you'll see that the id in the row data is different each time (and the row data)
The text was updated successfully, but these errors were encountered:
romgerman
changed the title
Wrong context row data in TargetEventsPlugin with vScrollAuto and Angular Router RouteReuseStrategy
Wrong context row data in TargetEventsPlugin with vScrollAuto and RouteReuseStrategy
Mar 21, 2023
What is the expected behavior?
When using
rowClick
row data should be of the clicked row.What is the current behavior?
When using
RouteReuseStrategy
with route caching, PblNgridRowEventevent.root?.context?.row
returns data of the rows around clicked row (and first time the row itself) when you return to the grid page.What are the steps to reproduce?
Scroll a little (to ~140). Click on a row. Go back and find the row and click again (maybe multiple times). In the console you'll see that the id in the row data is different each time (and the row data)
https://stackblitz.com/edit/pebula-ngrid-starter-cd8gfz?file=src/app/components/grid-page/grid-page.component.ts
Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?
In my project its [email protected], [email protected], [email protected], [email protected], [email protected]. Any browser.
Is there anything else we should know?
Also reproduces with
vScrollFixed
Workaround is to use
click
event onpbl-ngrid-row
withpblNgridRowOverride
directiveThe text was updated successfully, but these errors were encountered: