LearnNewsExamplesServices
Frontmatter
id8700
titleFix Portal Learn section tree navigation with removeDom optimization
stateClosed
labels
bugai
assigneestobiu
createdAtJan 16, 2026, 12:09 PM
updatedAtJan 16, 2026, 12:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/8700
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 16, 2026, 12:12 PM

Fix Portal Learn section tree navigation with removeDom optimization

tobiu
tobiu commented on Jan 16, 2026, 12:09 PM

The src/tree/List.mjs component now uses removeDom for collapsed folders. The Portal "Learn" section controller (apps/portal/view/learn/MainContainerController.mjs) fails to expand parent folders when navigating via deep links, causing the selection to fail because the target nodes do not exist in the DOM.

Fix: Update onRouteLearnItem to use tree.expandAndScrollToItem(itemId) or tree.expandParents(itemId) to ensure target nodes are rendered before selection.

tobiu
tobiu Jan 16, 2026, 12:12 PM

Input from Gemini 3 Pro:

✦ Fixed in 4867a2cf7. Applied logic from News/Tickets controller to properly expand parent nodes before selecting the item, ensuring compatibility with the recent removeDom optimization in Neo.tree.List.