Skip to content

fix(bootstrap-admin-ui): rebind tooltips after a live component re-render - #393

Open
Rafikooo wants to merge 1 commit into
Sylius:mainfrom
Rafikooo:fix/tooltips-after-live-render
Open

Rafikooo wants to merge 1 commit into
Sylius:mainfrom
Rafikooo:fix/tooltips-after-live-render

Conversation

@Rafikooo

@Rafikooo Rafikooo commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Tooltips are bound once, on page load. Any data-bs-toggle="tooltip" inside a live component (a form, a grid) loses its tooltip as soon as the component re-renders: new elements never get one, and morphed ones keep the title from before the render.

The init now also runs on every render:finished of each live component, scoped to that component's element, using the live:connect hook from the UX docs. A trigger that already has an instance gets it disposed first, so the fresh title is picked up.

The logic moved to scripts/tooltips.js so it can be covered by the existing node --test suite without a browser. public/ is not rebuilt, as with the other source-only fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant