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

Table: expandedRowKeys property broken in primeng 17.13.0 #15257

Closed
N0153 opened this issue Apr 11, 2024 · 3 comments
Closed

Table: expandedRowKeys property broken in primeng 17.13.0 #15257

N0153 opened this issue Apr 11, 2024 · 3 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@N0153
Copy link

N0153 commented Apr 11, 2024

Describe the bug

It is not possible to use the expandedRowKeys to programmatically control the expanded status of each row in a Table when using primeng 17.13.0. When attempting to manually expand a row the following message is returned

ERROR TypeError: Cannot create property 'key' on boolean 'true'
    at Table.toggleRow (vendor.js:200476:42)
    at RowToggler.onClick (vendor.js:203006:15)
    at RowToggler_click_HostBindingHandler (vendor.js:203023:22)
    at executeListenerWithErrorHandling (vendor.js:78612:12)
    at wrapListenerIn_markDirtyAndPreventDefault (vendor.js:78644:18)
    at HTMLButtonElement.<anonymous> (vendor.js:99169:112)
    at _ZoneDelegate.invokeTask (polyfills.js:8235:171)
    at vendor.js:67846:49
    at AsyncStackTaggingZoneSpec.onInvokeTask (vendor.js:67846:30)
    at _ZoneDelegate.invokeTask (polyfills.js:8235:54)

The only solution for now is to rollback to primeng 17.12.0 or lower.

Environment

angular 17.3.3
primeng 17.13.0

Reproducer

https://stackblitz.com/edit/3uwgk4

Angular version

17.3.3

PrimeNG version

17.13.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the StackBlitz reproducer
  2. Notice that the rows are not expanded by default, although they should be
  3. Try expanding a row
  4. Check the console for the error

Expected behavior

It should be possible to control the expanded state of a Table rows using the expandedRowKeys property.

@N0153 N0153 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 11, 2024
@clementgpro
Copy link

clementgpro commented Apr 11, 2024

I reproduce the problem
FYI it works with version 17.12.0

@BGBRWR
Copy link
Contributor

BGBRWR commented Apr 11, 2024

#15243 fixes this.

@mehmetcetin01140
Copy link
Contributor

Hi, this issue is not present in the latest version of PrimeNG (17.17.0). Please try it with the latest version. I'm closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

4 participants