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
blockedBy[]
blocking[]
closedAtJan 16, 2026, 12:12 PM

Fix Portal Learn section tree navigation with removeDom optimization

Closed v11.23.0 bugai
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 added the bug label on Jan 16, 2026, 12:09 PM
tobiu added the ai label on Jan 16, 2026, 12:09 PM
tobiu referenced in commit 4867a2c - "fix(portal): Fix Learn section tree expansion on route change (#8700)" on Jan 16, 2026, 12:12 PM
tobiu assigned to @tobiu on Jan 16, 2026, 12:12 PM
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.

tobiu closed this issue on Jan 16, 2026, 12:12 PM