Skip to content
Snippets Groups Projects
Commit 542645ea authored by Tögl, Christina's avatar Tögl, Christina
Browse files

Fix a bug with tooltip

parent ed078a1e
No related branches found
No related tags found
No related merge requests found
Pipeline #55624 passed
...@@ -68,7 +68,13 @@ export class InfoTooltip extends ScopedElementsMixin(DBPLitElement) { ...@@ -68,7 +68,13 @@ export class InfoTooltip extends ScopedElementsMixin(DBPLitElement) {
const tippy2CSS = commonUtils.getAssetURL(tippy2CSSPath); const tippy2CSS = commonUtils.getAssetURL(tippy2CSSPath);
if (this._('#info-tooltip-icon')) { if (this._('#info-tooltip-icon')) {
this.tippy = tippy(this._('#info-tooltip-icon'), { content: this.textContent }); this.tippy = tippy(this._('#info-tooltip-icon'), {
content: this.textContent,
appendTo: this.shadowRoot,
interactive: this.interactive,
allowHTML: this.interactive ? true : false,
hideOnClick: this.interactive ? false : true,
});
} }
return html` return html`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment