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

Add forms support #36

Open
davnat opened this issue May 19, 2022 · 3 comments
Open

Add forms support #36

davnat opened this issue May 19, 2022 · 3 comments

Comments

@davnat
Copy link

davnat commented May 19, 2022

Hello, and thanks for this component!

I'd like to use tags inside a form, but I get a big "Component Error" text, instead.

I'm not doing anything special, so I'm assuming tags don't support being put inside a form: am I wrong?

Thank you, cheers.

@Socvest
Copy link

Socvest commented Aug 6, 2022

How are you implementing it? I used it in my app and it works fine with:

 with st.form("form"): 
     st_tags()
     ...

@Rom1deTroyes
Copy link

I can confirm that it works with with:

    with st.form("form", True):
        st.header("HeaderF")
        st.markdown("-----")
        selection_codes_articles = st_tags(
                label="Articles à chercher F:",
                text="(Code + Entrée pour ajouter)",
                value=["12345-01"],
                suggestions=["12345-01"],
                maxtags=-1,
                key="ArticlesF",
        )
        btn = st.form_submit_button('->F')

image

@curiouscod3
Copy link

curiouscod3 commented Dec 30, 2023

It doesn't integrate with the form object internally. Also, Doesn't clear tags after submit . There is no way to clear/remove tags Programmatically?

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

4 participants