primeng
primeng copied to clipboard
datatable radio/checkbox selections not updated at events
There is no guarantee in receiving a response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours
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
* Current behavior selectRowWithRadio toggleRowWithCheckbox toggleRowsWithCheckbox
Are missing this.selectionChange.emit(this.selection); therefor the selection is not up to date when listening to the onRowSelect event.
I ran into this same thing and changed the selection emitter to be before the onRowSelect event where it currently is after the event gets fired. I believe this pull request will help this issue.
PR merged.