aws/aws-northstar

Mix single select with group by

hardco2020 opened this issue ยท 4 comments

Describe the bug
I would like to combine single select with group by for my table to show, everything went well just one problem, there will be select buttons near each group, which is not expected, since if they click on the button near each group, it will select all the items in the group, which will lead to the logic of my app broke, since you can only choose one item at a time.

So the problem will be how should I remove the select option near each group so my user wouldn't click them ?

See below picture for clarification
Screen Shot 2022-07-17 at 1 26 36 PM

Versions
"aws-northstar": "^1.3.12",

Code

Link to sample codesandbox

Hi @hardco2020,

Thank you for your bug report and we appreciate the feedback!

We will have a look this week.

Regards,

Jessie

๐ŸŽ‰ This issue has been resolved in version 1.3.16 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

Hi @hardco2020, the issue has been fixed in version 1.3.16.

Please check out this example: https://storybook.northstar.aws-prototyping.cloud/?path=/story/components-table--group-by-single-select.

To ensure it is working, please specify getRowId and use onSelectedRowIdsChange to catch the change.

@jessieweiyi Thanks for the prompt response and changes. I will update the version and try with the code!