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:- In the Table row grouping(rowGroupMode="rowspan") with selectionMode="multiple" , On selecting the second/any other row (except the first row) of the group, the Representative column is not highlighting. #13449

Closed
megharajak-05 opened this issue Aug 7, 2023 · 1 comment

Comments

@megharajak-05
Copy link

Describe the bug

Table:- In the Table row grouping(rowGroupMode="rowspan") with selectionMode="multiple" and [metaKeySelection]="true" , On selecting the second/any other row (except the first row) of the group, the Representative column is not highlighting. And on Representative column selection, the respective all rows are not highlighting.

image

image

Environment

"primeng": "16.1.0",

https://stackblitz.com/edit/getneq?file=src%2Fapp%2Fdemo%2Ftable-rowspan-grouping-demo.html,src%2Fapp%2Fdemo%2Ftable-rowspan-grouping-demo.ts,package.json

Reproducer

No response

Angular version

16.0.0

PrimeNG version

16.1.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.16.0

Browser(s)

Chrome, WebView2

Steps to reproduce the behavior

  1. Select first row on any group, the Representative column is highlighting.
  2. Select second row/any other row (except the first row) of that group, the Representative column is not highlighting.
  3. Select Representative column, all rows of that group are not getting highlighted.

Expected behavior

  1. On Selecting any row of the group, the Representative column should be highlighted.
  2. On Selecting Representative column, all rows of that group should be getting highlighted.
@megharajak-05 megharajak-05 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 7, 2023
@cetincakiroglu
Copy link
Contributor

Hi,

The situation you're referring to actually stems from the HTML table itself, not a bug. Take a look at the first row, due to the rowspan of the first element in the table being 7 and this element being only within the tags of the first row, the style is applied only to the row containing this element. The same applies to hover and focus states. If you wish to change this, you can use custom CSS. The example below is a refactored version of the example you provided, working as you desire.

https://stackblitz.com/edit/getneq-st2ajj?file=src%2Fapp%2Fdemo%2Ftable-rowspan-grouping-demo.html,src%2Fapp%2Fdemo%2Ftable-rowspan-grouping-demo.ts

@cetincakiroglu cetincakiroglu removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants