#16378 closed defect (fixed)
Tree: collapseAll() and other asynchronous methods resolve too early
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9 |
Component: | Dijit | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Running this code leaves the Tree closed rather than open, like it should.
mytree.collapseAll().then(function(){ return mytree.set("paths", [ ["continentRoot", "AF", "SD", "Khartoum"], ["continentRoot", "SA", "AR"] // Argentina ]); });
Further, it's in a weird state, as clicking the icon on "Continents" doesn't open the Tree the first time. You need to click it twice.
Test case attached.
Attachments (1)
Change History (5)
comment:1 Changed 8 years ago by
Milestone: | tbd → 1.9 |
---|---|
Status: | new → assigned |
Changed 8 years ago by
comment:2 Changed 8 years ago by
Root cause is #16431, either that ticket can be fixed, or Tree can workaround.
comment:4 Changed 8 years ago by
Summary: | Tree: collapseAll() returns too early? → Tree: collapseAll() and other asynchronous methods resolve too early |
---|
Note: See
TracTickets for help on using
tickets.
sibling of Tree_a11y.html