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.
If i pass the element.innerHTML value, then the element does get rendered, but it's functionality (clicking/event handler) is not available.
Note: the existing button is not a standard HTML button, but a button defined by a framework. Although it does work in any other place, it doesn't work inside the Tippy popover. If i do insert a basic HTML button, that works.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Would like to know the recommended practice for 'embedding' interactive html elements within the Tippy tooltip popover?
Currently, i'm passing an existing button element to Tippy (using this approach: https://atomiks.github.io/tippyjs/v6/html-content/#element). The button element doesn't even get rendered.
If i pass the
element.innerHTML
value, then the element does get rendered, but it's functionality (clicking/event handler) is not available.Note: the existing button is not a standard HTML button, but a button defined by a framework. Although it does work in any other place, it doesn't work inside the Tippy popover. If i do insert a basic HTML button, that works.
Beta Was this translation helpful? Give feedback.
All reactions