You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior
groupExpansionDefault is not respected when page is changed.
Expected behavior
groupExpansionDefault is respected when page is changed.
When page 0 is show by default -> groupExpansionDefault is respected (all groups are opened)
Click page 1 -> groupExpansionDefault is NOT respected (all groups are closed)
I tried to debug the code.
It looked like table?.bodyComponent?.rowExpansions contained groups from page from page 0 -> Updating data does not update this.table?.bodyComponent?.rowExpansions for some reason?
I printed out data's group keys + keys from table?.bodyComponent?.rowExpansions.
Page 0:
data group keys: [ "1", "1", "2", "2", "3"]
row expansions: [ "1", "2", "3" ]
Page 1:
data group keys: [ "4", "4", "4", "5" ]
row expansions: [ "1", "2", "3" ]
What is the motivation / use case for changing the behavior?
Not sure if is just me doing something wrong or is there a bug with grouping with default expansion?
I also noticed that inputs
groupRowsBy
andgroupExpansionDefault
aren't described in current document?https://swimlane.gitbook.io/ngx-datatable/api/table/inputs
I'm submitting a ... (check one with "x")
Current behavior
groupExpansionDefault
is not respected when page is changed.Expected behavior
groupExpansionDefault
is respected when page is changed.Reproduction of the problem
1. Set up
2. Steps
I tried to debug the code.
It looked like table?.bodyComponent?.rowExpansions contained groups from page from page 0 -> Updating data does not update this.table?.bodyComponent?.rowExpansions for some reason?
I printed out data's group keys + keys from table?.bodyComponent?.rowExpansions.
Page 0:
Page 1:
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Table version:
"@swimlane/ngx-datatable": "^20.1.0",
Angular version:
Browser:
Tested with
Chrome version 115.0.5790.98 (Official Build) (64-bit)
Language:
typescript 5.1.6
The text was updated successfully, but these errors were encountered: