LearnNewsExamplesServices
Frontmatter
id5036
titletree.Accordion: Selection model in tree.Accordion doesn''t work
stateClosed
labels
bugstale
assignees[]
createdAtOct 18, 2023, 3:56 PM
updatedAtSep 13, 2024, 4:28 AM
githubUrlhttps://github.com/neomjs/neo/issues/5036
authorpensuwan-k
commentsCount4
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 13, 2024, 4:28 AM

tree.Accordion: Selection model in tree.Accordion doesn't work

Closed v8.1.0 bugstale
pensuwan-k
pensuwan-k commented on Oct 18, 2023, 3:56 PM

The styling of the selected record doesn't get applied after the data for the tree.Accordion get updated. It crashes in card layout context. The selection applied, get kick out of DOM, drop it back in, lost.

tobiu referenced in commit 5726e38 - "#5036 examples.treeAccordion.MainContainer: added a remove DOM button" on Oct 19, 2023, 1:03 PM
tobiu
tobiu Oct 19, 2023, 1:05 PM

hi @pensuwan-k,

i added a "Remove DOM" button into the example:

Screenshot 2023-10-19 at 13 04 03

Screenshot 2023-10-19 at 13 04 20

When I drop the DOM back in, the selection is still in place. We need a reproducible testcase.

@pensuwan-k - 2023-10-19T13:43:45Z

After updating the store data (something like accordion.store.data = accordion.store.data.splice(0,6);), the selectionModel should be empty.

tobiu referenced in commit 84f4933 - "v6.9.2 (#5048) on Oct 19, 2023, 8:25 PM