Tooltip doesn't work on html returned by ajax

Created on 2 November 2022, about 2 years ago
Updated 6 August 2023, over 1 year ago

Problem/Motivation

When the html returned by an ajax call contains an element with the tooltip data attribute, it won't work. The use of once() in the Drupal behaviour seems to be the cause.

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇧🇪Belgium HnLn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Please forgive the delay in replying.

    I'm sorry but I don't understand how I can reproduce the issue.

    The root of Ajax errors in Drupal can be multiple... and I don't know how the `data-tooltip-id` attribute can cause an exception.

    It must be something related to the JS behaviors.

    Could you maybe please share the full error message returned in the console?

    Looking forward to hearing from you.

Production build 0.71.5 2024