-
Notifications
You must be signed in to change notification settings - Fork 55
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
Cascade deselection of prerequisite nodes #16
Comments
I agree that this is a usability issue. I'd like to see your thoughts on implementation. Right now each node has only knowledge of its direct parent's Id and state, and nothing else, but each Node has knowledge of all its child nodes. I've got a few ideas on how to implement this, but I'd like to hear some of your ideas |
Since the child already responds to change of state from its parent, I have
an implementation that sets a node’s state to locked if none of its parents
are selected. Then, since that node’s state has been updated and is not
selected, it’s children are locked too. I was waiting to submit it until I
can write tests for the behavior, but I can submit it as a work in progress.
…On Mon, Jul 15, 2019 at 1:47 AM Andrico ***@***.***> wrote:
I agree that this is a usability issue. I'd like to see your thoughts on
implementation. Right now each node has only knowledge of its direct
parent's Id and state, and nothing else, but each Node has knowledge of all
its child nodes. I've got a few ideas on how to implement this, but I'd
like to hear some of your ideas
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AB64S6GGLVTWL4URNOEF37DP7QFNRA5CNFSM4IDGXXMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4YK7A#issuecomment-511280508>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB64S6EML3T6H643QMUADHLP7QFNRANCNFSM4IDGXXMA>
.
|
That sounds great, I'd love to see a WIP PR. As part of the issue, can you reference some performance testing you've performed, even from within the browser console. |
Whenever a prerequisite node is de-selected (current state set to anything other than 'selected' - usually 'unlocked'), its children still remain selected. This can be confusing because that node can then be unselected but cannot be selected again unless its prerequisite nodes are selected again.
If accepted, this issue would implement cascading behavior to the deselection of nodes. That is, it would be invalid for a node to be selected and its prerequisite node(s) not to be selected.
The text was updated successfully, but these errors were encountered: