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

Angular: Issue with FlexRenderComponent not updating row references in context (injectFlexRenderContext) #5767

Open
2 tasks done
d9nny opened this issue Oct 1, 2024 · 0 comments

Comments

@d9nny
Copy link

d9nny commented Oct 1, 2024

TanStack Table version

v8.20.5

Framework/Library version

Angular 17

Describe the bug and the steps to reproduce it

Description:

Expected behaviour: When using FlexRenderComponent and injectFlexRenderContext with column defs (like a checkbox component for row selection), the row context should update reactively in sync with the selection model.

Actual behaviour: The model updates correctly (e.g., selection count is accurate), but the row reference in the context does not, causing methods like row.getIsSelected() to return stale data (I assume). For example, if you click the header checkbox, you can see it updates the model, but none of the body rows show as being selected.

Workaround: Rendering the checkboxes directly in the table template without FlexRenderComponent works as expected.

Reproduce:

It can be seen in your example
https://tanstack.com/table/latest/docs/framework/angular/examples/row-selection

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://tanstack.com/table/latest/docs/framework/angular/examples/row-selection

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant