-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: built-in Ctrl+A errors when "rows" parameter is defined #14634
Comments
Fixed #14634 - Table | Built-in Ctrl+A errors when rows parameter is …
@cetincakiroglu Error fixed in console but the selected lines are inexact, wrong fix. |
Thanks for the feedback we'll check again. |
Hi @quentin-ineat-ca , Ctrl + A selects all options in the current page and there isn't a console error. Could you please guide me to catch what's wrong with it? |
Hello @cetincakiroglu On apparence the selection is good but the actual selected rows are not good and they are duplicated. If you click on first row (for exemple), cmd+a, you get 15 selected while only 10 on the page. |
Hi @quentin-ineat-ca , Thank you for helping me understand the problem and providing a new example. When the paginator is used, the selectAll function does not work properly. I have created a new issue and added it to the milestone. We will try to resolve this issue in version 17.6.0 #14700 |
We've investigated the issue and found that |
Thank you for the follow up :) |
Describe the bug
Create a p-table with
selectionMode="multiple"
and[rows]="5"
(or whatever number).Select a row, then press Ctrl+A in an attempt to select the rest. Nothing happens and in the web console there is an error:
I've also seen "data is not iterable" from onKeyDown.
Environment
Basic app, running in Linux on Chrome or Firefox, with Ang/PrimeNG versions below.
Reproducer
https://stackblitz.com/edit/github-u7kinp?file=src%2Fapp%2Fapp.component.html
Angular version
17.0.7
PrimeNG version
17.3.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
Node 20.9.0
Browser(s)
Chrome and Firefox
Steps to reproduce the behavior
From the StackBlitz example:
If you remove [rows] from the p-table and try again it works as expected.
Expected behavior
Ctrl+A selects all the rows properly
The text was updated successfully, but these errors were encountered: