question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataTable: selectionMode=multiple with rowSelectMode=none still shows cursor pointer

See original GitHub issue

Describe the bug

DataTable Checkbox selection with rowSelectMode="none" still sets the cursor: pointer style on hover of the entire row, despite only being able to select via the Checkbox.

Reproducer

This issue can be reproduced running the showcase locally. Modify the Checkbox example in the ui/data/datatable/selection.xhtml showcase page and set rowSelectMode="none". Run the showcase and hover the rows in that example.

Expected behavior

If a row cannot be selected by clicking on the row itself, the cursor should remain as the arrow rather than changing to a pointer.

PrimeFaces edition

Community

PrimeFaces version

13.0.0

Theme

All

JSF implementation

All

JSF version

2.3

Java version

11

Browser(s)

All

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mellowarecommented, Nov 22, 2022

Workaround:

body .ui-datatable .ui-datatable-data > tr.ui-datatable-selectable {
  cursor: auto;
}
0reactions
FlipWarthogcommented, Nov 28, 2022

Workaround works like a charm, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse pointer when mouse over row — DataTables forums
Hi, What should be done to get the mouser adopt hand-finger-shape when mousing over a row in DataTables?
Read more >
change cursor to pointer for all rows of the datatable except ...
Now I have the cursor as pointer in all rows except the last row.How can I achieve that? javascript · php · jquery...
Read more >
cursor - CSS: Cascading Style Sheets - MDN Web Docs
The cursor CSS property sets the mouse cursor, if any, to show when the mouse pointer is over an element.
Read more >
Solved: How to change mouse cursor from the "arrow" pointe...
I want figure out a way to turn the mouse cursor from the "arrow" pointer to the "hand" pointer when the user hovers,...
Read more >
How to set cursor style to pointer for links without href
A CSS class is created that changes the cursor property. The cursor property is used to specify the mouse cursor to be displayed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found