Primeng: p-datatable w/ metaSelectionKey="false" does not emit row data on selection

Created on 1 Nov 2017  路  2Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[X ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.

http://plnkr.co/edit/RojMuMDqnXV8kGTYWgpE?p=preview

Current behavior
When the p-datatable attribute metaKeySelection is set to false and selectionMode is set to single, no row data is emitted on row selection

Expected behavior
Emission of row data should occur if metaKeySelection is set to false

Minimal reproduction of the problem with instructions
Create a datatable with metaSelectionKey="false" and selectionMode="single" (see aforementioned plunker)

What is the motivation / use case for changing the behavior?
Users should be able to click on a row to unselect, not have to use ctrl/command to unselect

Please tell us about your environment:
MacOX, IntelliJ 2017

  • Angular version: 4.4.6

  • PrimeNG version: 4.3.0

  • Browser: all

  • Language: all

confirmed defect

Most helpful comment

Also seeing the issue for Windows 7 on Firefox Developer Edition & Chrome.

All 2 comments

Also seeing the issue for Windows 7 on Firefox Developer Edition & Chrome.

The same problem here...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

papiroca-tm picture papiroca-tm  路  3Comments

garethlewis picture garethlewis  路  3Comments

mitosandov picture mitosandov  路  3Comments

Faigjaz picture Faigjaz  路  3Comments

just-paja picture just-paja  路  3Comments