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

expanded cannot be changed when children is null #18

Open
joechrz opened this issue Oct 31, 2016 · 3 comments
Open

expanded cannot be changed when children is null #18

joechrz opened this issue Oct 31, 2016 · 3 comments
Assignees
Labels

Comments

@joechrz
Copy link
Collaborator

joechrz commented Oct 31, 2016

This code fails:

descriptor.children = null;
descriptor.expanded = false;

because the expanded setter will early-exit if no children are present. the code needs to be:

descriptor.expanded = false;
descriptor.children = null;

https://github.com/gridgrid/grid/blob/master/src/modules/abstract-row-col-model/index.js#L316
^it seems this should only early exit when trying to set expanded to true when no children are present.

@joechrz joechrz added the bug label Oct 31, 2016
@scamden scamden added this to the 4.x milestone Jun 17, 2017
@scamden
Copy link
Member

scamden commented Jun 17, 2017

i think you're right feel free to submit a pr against the v4 branch to fix this

@scamden
Copy link
Member

scamden commented Aug 23, 2017

actually i think this reveals a larger bug that any change to children must be done while not expanded. any other change to children while expanded will cause some... problems

@scamden
Copy link
Member

scamden commented Aug 23, 2017

i'm unfortunately gonna have to put this one off a little while given the scope of the fix

@scamden scamden removed this from the 4.x milestone Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants