LearnNewsExamplesServices
Frontmatter
id9312
titleDevIndex: Disable controls toggle button on learn route
stateClosed
labels
bugai
assigneestobiu
createdAtFeb 26, 2026, 5:04 PM
updatedAtFeb 26, 2026, 5:09 PM
githubUrlhttps://github.com/neomjs/neo/issues/9312
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtFeb 26, 2026, 5:09 PM

DevIndex: Disable controls toggle button on learn route

tobiu
tobiu commented on Feb 26, 2026, 5:04 PM

When starting DevIndex directly on the /learn route, clicking the 'hamburger' controls toggle button causes a JS error because the home view (where the controls and grid are) is not yet mounted due to lazy loading.

If navigating from home to learn, the click is pointless as the controls are not visible.

The solution is to toggle the `disabled` state of the `controls-toggle-button` inside the viewport's route handler methods (`onHomeRoute` and `onLearnRoute`).
tobiu
tobiu Feb 26, 2026, 5:09 PM

Input from Gemini 3.1 Pro:

✦ The controls-toggle-button is now explicitly disabled on the /learn route and enabled on the /home route. This resolves the JS error caused by clicking it when the home view is not mounted. The change is committed and pushed to dev.