-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Small fixes for nested groups #2852
Conversation
|
Thanks for your pull request :) Could you please make it against the |
Don't update the showNested property if nothing has been set in the data object, unless it is undefined. Verify group object exists during `onGroupClick`
cbfb388 to
4126445
Compare
|
Apologies, used to merging against master. Should be OK now. It's not against any open issues that I've seen, it's just a set of fixes that were required for our particular use case. I can open issues with examples of the things this fixes, if it helps? |
|
Seems like another change that would benefit from unit tests |
@BTMorton Thanks, that would be helpful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Next included issue: When a group with nested groups is added and updated in the dataset without a showNested property, and the nested groups are currently hidden, triggering the update puts the parent group into un-collapsed mode whilst still not showing the nested groups. Example can be seen at https://plnkr.co/edit/uobyLYuTGv9zcljkpt0a?p=preview. To reproduce, hide the nested group and click trigger update. |
|
Thanks @BTMorton ! Looking forward to more PRs from you! |
These are fixes implemented by our team to get the desired, dynamic nested group functionality:
onGroupClick