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

ResourceItem selection broken on first selected item #13278

Open
cedrvanh opened this issue Feb 21, 2025 · 0 comments
Open

ResourceItem selection broken on first selected item #13278

cedrvanh opened this issue Feb 21, 2025 · 0 comments
Labels
Bug Something is broken and not working as intended in the system. untriaged

Comments

@cedrvanh
Copy link

Summary

Currently there seems to be an issue regarding the ResourceList and ResourceItem components.
When no items are currently selected, clicking on the entire row (not the select box), does not select the item. Only clicking on the checkbox works. Once you have at least one item selected, you can select other items by clicking anywhere else on a resource item. This seems like a bug rather than a design decision.

Expected behavior

Since the entire row gets highlighted when hovering you would expect it to be clickable and selectable.

Actual behavior

If no items are currently selected, clicking on the entire row (not the select box), does not select the item. Only clicking on the checkbox works. Once you have at least one item selected, you can select other items by clicking anywhere else on a resource item.

Steps to reproduce

Link to sandbox

  1. Click on the row of a resource item when none are selected
  2. It doesn't get selected
  3. Select it by using the checkbox
  4. Click on a row of any other resource item and you will be able to select it

Are you using React components?

Yes

Polaris version number

13.9.1

Browser

Chrome

Device

Macbook Pro

@cedrvanh cedrvanh added Bug Something is broken and not working as intended in the system. untriaged labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system. untriaged
Projects
None yet
Development

No branches or pull requests

1 participant