-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calling streamlit_js_eval creates visible iframe #4
Comments
Hi. I will try to reproduce this and see. It seems the internals of Streamlit custom components have changed recently. |
I also have the same issue with @DevDrake |
|
I cannot reproduce the issue in streamlit 1.31.1. Can you send an example please? Anyways, the solution by @shawngiese should work. I don't know about further consequences though. It's like this st.markdown(f"<style>iframe{display: none}</style>",unsafe_allow_html=True) |
same question in 1.35.0 |
If all of your jscode doesn't need to display anything and you have other iframes(custom components) you don't want to hide, you can use this to hide just streamlit_js_eval iframes
|
when i call :
streamlit_js_eval(js_expression='window.innerwidth', key='WIDTH')
it creates visible iframe in streamlit app:
I understand, it has to create something to get the property, but can it have
opacity=0
or just a way to setup css on the component form streamlit app ?The text was updated successfully, but these errors were encountered: