Skip to content
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

[BUG] Multiple editors cause blank page in a @st.dialog #9

Open
CarlaFernandez opened this issue Oct 3, 2024 · 0 comments
Open

[BUG] Multiple editors cause blank page in a @st.dialog #9

CarlaFernandez opened this issue Oct 3, 2024 · 0 comments

Comments

@CarlaFernandez
Copy link

Hello,

I am having an issue when I include multiple st_quill editors in a dialog (using @st.dialog decorator).

Here is a minimal working example of the bug:

import streamlit as st
from streamlit_quill import st_quill

@st.dialog("This is dialog")
def dialog():
    title = st_quill("This is a title", toolbar=False, html=False)
    date = st_quill("This is a date", toolbar=False, html=False)
    intro = st_quill("This is a intro", toolbar=False, html=False)
    body = st_quill("This is a body", toolbar=False, html=False)

    click = st.button("Click me")

    if click:
        st.markdown(f"Title: {title}")
        st.markdown(f"Date: {date}")
        st.markdown(f"Intro: {intro}")
        st.markdown(f"Body: {body}")

dialog()

This does work with just a single editor, but it starts breaking when adding a second one. It is also not consistent, sometimes it works and all the editors appear, but most often they do not.

This is an important functionality for us. Would it be possible to find a fix?

Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant