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 Component: onRowSelect and onRowUnselect events have undefined index #15649

Open
vindow opened this issue May 21, 2024 · 0 comments
Open
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@vindow
Copy link

vindow commented May 21, 2024

Describe the bug

The TableRowSelectEvent and TableRowUnSelectEvent objects coming from onRowSelect and onRowUnselect events have index properties of value undefined.

Environment

Stackblitz

Reproducer

https://stackblitz.com/edit/github-nnjcdw?file=src%2Fapp%2Fapp.component.html

Angular version

17.3.9

PrimeNG version

17.17.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Open console
  2. Click a table row in the app
  3. See that the logged event has undefined index

Expected behavior

Index should be the actual index of the item in the table data

@vindow vindow added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 21, 2024
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

1 participant