Opened 10 years ago
Closed 9 years ago
#16329 closed defect (wontfix)
Tree: drop between has strange placement for TreeStoreModel w/multiple childrenAttrs
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | low | Milestone: | 1.9 |
Component: | Dijit | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Using test_Tree_Dnd.html, and dragging any item and trying to drop it (for example) before or after the Vegetables category will put it under Foods, before any of the categories.
Change History (2)
comment:1 Changed 9 years ago by
Milestone: | tbd → 1.9 |
---|---|
Priority: | undecided → low |
comment:2 Changed 9 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Summary: | Tree: drop between has strange placement → Tree: drop between has strange placement for TreeStoreModel w/multiple childrenAttrs |
Note: See
TracTickets for help on using
tickets.
The problem happens in TreeStoreModel.pasteItem() when it tries to get the children of the "Foods" parent node via:
It's failing because of the line:
The problem is that childrenAttrs specifies multiple attributes (item and children), due to an ill-conceived feature added in #4528, and it's only checking items[], not children[].
This will all go away in 2.0, along with TreeStoreModel.js itself, so it's not worth fixing this bug.