Closed Toxiiin closed 1 year ago
Hello @Toxiiin,
I found the answer of this issue.
from streamlit_elements import html
# import others
....
with elements("tooltip_test"):
with mui.Tooltip(title="Tooltip"):
with html.span:
mui.Typography(
"Tooltip"
)
Hi @Sanuki-073,
never thought would get an answer after this time. 😃 Thank you for sharing the answer! 👍
Hi everyone, hi @okld,
I was trying to use some tooltips with the mui.Tooltip element, but if I do, it throws an ElementsFrontendError:
ElementsFrontendError: In elements frame 'streamlit_elements.core.frame.elements_frame.tooltip_test': Cannot read properties of undefined (reading 'addEventListener')
I have used the following snippet:
Is there something I missed?
Expected Behavior
Tooltip shows up as expected.
Current Behavior
Usage of mui.Tooltip results in an ElementsFrontendError.
ElementsFrontendError: In elements frame 'streamlit_elements.core.frame.elements_frame.tooltip_test': Cannot read properties of undefined (reading 'addEventListener')
Steps to Reproduce
Context (Environment)