Bug
Standard component tooltips do not appear inside a floating Neo.dialog.Base mounted outside the application's main viewport.
Reproduction
- Start an application with a main viewport.
- Create a floating
Neo.dialog.Base using its default mounting under document.body, with logical ownership in the application.
- Add a
Neo.button.Base configured with tooltip: 'Edit'.
- 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.
Bug
Standard component tooltips do not appear inside a floating
Neo.dialog.Basemounted outside the application's main viewport.Reproduction
Neo.dialog.Baseusing its default mounting underdocument.body, with logical ownership in the application.Neo.button.Baseconfigured withtooltip: 'Edit'.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)usescomponentId: app.mainView.id.afterSetComponentId()attaches the delegated mouseenter/mouseleave listeners to that component. A floating dialog mounted underdocument.bodyis 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 withneo-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: trueshould 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.