We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pydantic_form
Describe the bug:
When I try to have nested pydantic_forms, the page just gets cleared out.
Expected behaviour:
I expect the below code snippet to not wipe the screen after the second submit button is pressed.
Steps to reproduce the issue:
import streamlit as st import streamlit_pydantic as sp from pydantic import BaseModel, Field class MinCount(BaseModel): min_count: int = Field(default=4, gt=0) st.title("Test") input_1 = sp.pydantic_form(key="input-1", model=MinCount) if input_1: input_2 = sp.pydantic_form(key="input-2", model=MinCount) if input_2: st.write(f"{input_1.min_count=}, {input_2.min_count=}.")
Technical details:
Here are my requirements with Python 3.11:
pydantic 2.5.2 pydantic_core 2.14.5 pydantic-settings 2.1.0 streamlit 1.28.2 streamlit-pydantic 0.7.1
I am installing https://github.com/LukasMasuch/streamlit-pydantic/tree/390a45aba7bf8caccc297c335715cc141db490af directly from GitHub
Possible Fix:
Additional context:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug:
When I try to have nested
pydantic_form
s, the page just gets cleared out.Expected behaviour:
I expect the below code snippet to not wipe the screen after the second submit button is pressed.
Steps to reproduce the issue:
Technical details:
Here are my requirements with Python 3.11:
I am installing https://github.com/LukasMasuch/streamlit-pydantic/tree/390a45aba7bf8caccc297c335715cc141db490af directly from GitHub
Possible Fix:
Additional context:
The text was updated successfully, but these errors were encountered: