atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.93k stars 520 forks source link

[Angular] click events inside tooltip when using elementRef #842

Closed amyth91 closed 4 years ago

amyth91 commented 4 years ago

I've have an elementRef with a list of item with (click)="doSomething(x)". I have run into an issue where once the page is rendered, the 1st time list is not displayed in the tooltip and once it is, none of the click events work.

config used is as follows:

<span
[tooltip]="tooltipRef.innerHTML"
[tooltipConfig]="{allowHTML: true, theme: 'light', interactive: true, delay: [200,0]}">
</span>

<div #tooltipRef style="display:none">
  <ul>
 <li (click)="doSomething()">An item among the test</li>
 </ul>
</div>

Not sure what options to use to get this working.

atomiks commented 4 years ago

Unfamiliar with Angular; you could try Stack Overflow with a repro for them