-
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
DataTable Single Mode Selection doesn't unselect #783
Comments
Hi Guys, I am still facing same issue in 1.0.0-rc.5. In my scenario, the selection mode is single and I have only one data item in table. Even same is not working in live examples on site. http://www.primefaces.org/primeng/#/datatable/selection Can you please test on it and revert. On selecting again, it still fires onRowSelect event. Thanks, |
A workaround for same is to press Ctrl while selecting again and it will allow to deselect. |
still am facing same issue onRowUnselect. its not firing. using 1.0.0-beta.17 |
issue still exists with 1.1.0, can be observed on http://www.primefaces.org/primeng/#/datatable/selection. no unselect events are fired for mouse clicks, seems to work for touch though (tested with chrome devtools device emulation). |
You need to add [metaKeySelection]="false" property to the dataTable and then it should work. It also states that in the documentation under the section 'multiple' |
I have the same issue as mentioned above. On selecting a row the first error that pops is Any idea whats going wrong? |
@mugrufis thank you for the But I wrap p-datatable in my own datatable component and heavily extend it, so I don't think I can help you:/ I just wanted to say thank you. Edit: I just noticed that @MakhouT was the first one who gave the advice. So thank to you too :) |
I created a method to deselect a row programmatically after selecting a single row and it works fine.
|
From [http://www.primefaces.org/primeng/#/datatableselection]: "In single mode, a row is selected on click event of a row. If the row is already selected then the row gets unselected."
Instead, clicking on a selected row simply fires another onRowSelect event. This behavior can be seen in the Showcase example at the link above.
The text was updated successfully, but these errors were encountered: