LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 17, 2026, 5:30 PM
updatedAtNov 17, 2026, 8:58 PM
githubUrlhttps://github.com/neomjs/neo/issues/21268
authorarmando-ota
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 17, 2026, 8:58 PM

Shared component tooltips do not show inside floating dialogs mounted outside the main viewport

armando-ota
armando-ota commented on Nov 17, 2026, 5:30 PM

Bug

Standard component tooltips do not appear inside a floating Neo.dialog.Base mounted outside the application's main viewport.

Reproduction

  1. Start an application with a main viewport.
  2. Create a floating Neo.dialog.Base using its default mounting under document.body, with logical ownership in the application.
  3. Add a Neo.button.Base configured with tooltip: 'Edit'.
  4. Show the dialog and hover the button.

The tooltip does not appear. Configuring tooltip: {ownInstance: true, text: 'Edit'} makes it appear.

Expected behavior

The same reusable component should show its standard tooltip in an ordinary container, a grid, or a floating dialog without the developer having to select a different tooltip implementation for each host. The framework should handle the component's physical rendering location automatically.

Framework code involved

In src/tooltip/Base.mjs, Tooltip.createSingleton(app) uses componentId: app.mainView.id. afterSetComponentId() attaches the delegated mouseenter/mouseleave listeners to that component. A floating dialog mounted under document.body is outside the main viewport's DOM subtree, so its events do not reach that listener.

The default path in src/component/Base.mjs#createTooltip() selects the application singleton and marks the target with neo-uses-shared-tooltip; it does not account for a target outside the singleton's delegated root.

Requested framework behavior

Please make shared tooltip delegation cover floating components in the owning browser window, preserving sharing and listener cleanup. ownInstance: true should remain an explicit choice for components that need a dedicated instance, rather than a required workaround for their container's DOM placement.

Useful regression coverage would include ordinary viewport children, body-mounted dialogs, tooltip text updates on recycled grid buttons, and repeated dialog show/hide/destruction.