Selection issues when using a sl-grid-selection-column and groupHeaders
Provide a general summary of the issue here
When you toggle a group, the existing selection is removed.
๐ค Expected Behavior?
I expect the current selection to stay the same.
๐ฏ Current Behavior
Whenever you collapse or expand a group, the selection you had is removed.
๐ Possible Solution
No response
๐ฅ๏ธ Steps to Reproduce
Start: Have a grid with multiple groups, all collapsed.
Step 1: Expand a group Step 2: Select at least one item Step 3: Expand another group
Error: Your selection is removed.
What browsers are you seeing the problem on? (only for bugs in code)
Chrome
If other, please specify.
No response
What operating system are you using?
Windows
๐ค Your name
Pauline Kingma
๐งข Your product/team
Magister
๐จ Your Theme(s)
Magister
### Tasks
- [ ] make new tokens available in magister theme (and all other themes)
@PaulineKK Can you maybe provide an example (preferably code/proof of concept, but at least a video) of what you are trying to do? And also which version of the data-grid component you are using? We've recently updated the way selection works, so make sure you are using the latest version.
In our current version I've made this example:
And that works as you expect, so we need a bit more information to be able to help you out.
I can't get the video to embed, but you can see how it works here: https://github.com/user-attachments/assets/da00b6ff-26ba-4591-ab65-f778ece616d9
I'm using version: 0.1.12. (On SLDS Storybook the grid in Magister Theme is broken, Jeroen Z. advised me not to update because of that.) But if you have fixed this I would love to update, especially if this bug is fixed!
I see the Magister theme is indeed severely broken ๐ We'll fix that first and then hopefully the issue you reported here will automatically be fixed, and otherwise we will have another look at it.
@jpzwarte will check issue(s) with the grid within the Magister dev team to see how critical it is.