You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
The problem is that by default tippy bubbles have the CSS attribute pointer-events: none, so clicking the button does nothing. The only way I've found to get around this limitation is to manually select the bubble and change the CSS, which I find very ugly:
It would be nice if you could add an option to the tippy function that enables pointer events, so that I could do something like:
constbubble=tippy("#someElement",{content: "<button id=\"myButton\">Click here</button>",allowHTML: true,showOnCreate: true,trigger: "manual",hideOnClick: false,usePointerEvents: true//Not currently possible, could you please add support for this?});document.querySelector("#myButton").onclick=()=>alert("Do stuff");
The text was updated successfully, but these errors were encountered:
Problem
I have a tippy bubble to which I've added a button:
The problem is that by default tippy bubbles have the CSS attribute
pointer-events: none
, so clicking the button does nothing. The only way I've found to get around this limitation is to manually select the bubble and change the CSS, which I find very ugly:Solution
It would be nice if you could add an option to the tippy function that enables pointer events, so that I could do something like:
The text was updated successfully, but these errors were encountered: