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

DataTable: Rows are selectable through the row header #7596

Open
Simbayyy opened this issue Jan 13, 2025 · 0 comments
Open

DataTable: Rows are selectable through the row header #7596

Simbayyy opened this issue Jan 13, 2025 · 0 comments
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@Simbayyy
Copy link

Describe the bug

When using row subheaders and selectable rows, when table is scrolled so that the row subheader is stickied over a data row : hovering a data row and moving the cursor up to the row subheader does not drop the hovering. Clicking at that time enables selection through the row header

Reproducer

https://stackblitz.com/edit/react-bobdbj-nfdhvzor

System Information

primereact: 10.9.1 (from testing, occurs from 9.2.0 onwards and does not occur in 9.0.0)
react: 18.2.0

Steps to reproduce the behavior

On the stackblitz:

  1. Mouse over the table
  2. Scroll down a bit
  3. Hover Rozella Ostrosky row
  4. Move your mouse up to Row header
  5. Left-click

Expected behavior

I'm expecting the row header to catch the click event, and that no row is selected

@Simbayyy Simbayyy added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 13, 2025
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants