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

Nested groups cannot collapse when groups are plain array #203

Open
aaronik opened this issue Nov 22, 2019 · 1 comment
Open

Nested groups cannot collapse when groups are plain array #203

aaronik opened this issue Nov 22, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@aaronik
Copy link

aaronik commented Nov 22, 2019

When new Timeline(...) is given groups with nested groups, the top groups appear with an arrow that switches from down to sideways, indicating the nested groups should disappear. However, if the groups object given is a plain array (rather than a DataSet), they do not disappear.

here is a fiddle that demonstrates the broken behavior. I have commented out the workaround -- by using a DataSet. If you comment out the var groups = [... assignment and uncomment the var groups = new DataSet... assignment, it will start working. (Note you can select the block and use ctl-/ to bulk comment).

@yotamberk yotamberk added the bug Something isn't working label Nov 22, 2019
@strazto
Copy link
Contributor

strazto commented Oct 13, 2020

By the way, this was reported in yotamberk/timeline-plus#113 quite some time ago, with a near identical fiddle.

strazto added a commit to strazto/vis-timeline that referenced this issue Oct 13, 2020
strazto added a commit to strazto/vis-timeline that referenced this issue Oct 13, 2020
Squash of following:

commit 840ca81
Author: Matthew Strasiotto <[email protected]>
Date:   Tue Oct 13 20:46:21 2020 +1100

    chore(examples.nestedgroups): revert prev

    This reverts commit 1a8fd7e.

    Please squash this.

commit 1a8fd7e
Author: Matthew Strasiotto <[email protected]>
Date:   Tue Oct 13 20:45:11 2020 +1100

    chore(examples.nestedgroups): add example to demonstrate fix of visjs#203

commit 5a64274
Author: Matthew Strasiotto <[email protected]>
Date:   Tue Oct 13 20:41:51 2020 +1100

    fix(timeline.setgroups): nested groups fold correcly when input is array

    Fixes visjs#113
strazto added a commit to strazto/vis-timeline that referenced this issue Oct 24, 2020
yotamberk added a commit that referenced this issue Oct 24, 2020
…ray (#718)

* fix(timeline.setgroups): nested groups fold correcly when input is array

Fixes #113

* chore(examples.nestedgroups): add example to demonstrate fix of #203

* chore(examples.nestedgroups): revert prev

This reverts commit 1a8fd7e.

Please squash this.

Co-authored-by: Yotam Berkowitz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants