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
Text input not getting updated after loading state from a dictionary #7084
Labels
feature:st.session_state
feature:st.text_input
priority:P2
status:confirmed
Bug has been confirmed by the Streamlit team
status:needs-triage
Has not been triaged by the Streamlit team
type:bug
Something isn't working
Comments
raphaeltimbo
added
status:needs-triage
Has not been triaged by the Streamlit team
type:bug
Something isn't working
labels
Jul 27, 2023
raphaeltimbo
changed the title
Text input not getting updated after loading state from a file
Text input not getting updated after loading state from a dictionary
Jul 27, 2023
4 tasks
willhuang1997
added
status:confirmed
Bug has been confirmed by the Streamlit team
priority:P2
labels
Aug 10, 2023
sfc-gh-wihuang
pushed a commit
that referenced
this issue
Aug 12, 2023
#7150) Describe your changes Change commitWidgetValue to take in dirty parameter as we need to change dirty to true when committing the widget value we need to commit the widget value because when autofill is done, the widget value is not committed as thus username will show up to be an empty string without interaction GitHub Issue Link (if applicable) #7101 #7084 Testing Plan Explanation of why no additional tests are needed Unit Tests (JS and/or Python) readded tests I deleted before with some slight additions E2E Tests Any manual testing needed? yes it doesn't seem very doable to test autofill functionality. However, I can probably add some tests for commit value being called Contribution License Agreement By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
eric-skydio
pushed a commit
to eric-skydio/streamlit
that referenced
this issue
Dec 20, 2023
streamlit#7150) Describe your changes Change commitWidgetValue to take in dirty parameter as we need to change dirty to true when committing the widget value we need to commit the widget value because when autofill is done, the widget value is not committed as thus username will show up to be an empty string without interaction GitHub Issue Link (if applicable) streamlit#7101 streamlit#7084 Testing Plan Explanation of why no additional tests are needed Unit Tests (JS and/or Python) readded tests I deleted before with some slight additions E2E Tests Any manual testing needed? yes it doesn't seem very doable to test autofill functionality. However, I can probably add some tests for commit value being called Contribution License Agreement By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
zyxue
pushed a commit
to zyxue/streamlit
that referenced
this issue
Mar 22, 2024
streamlit#7150) Describe your changes Change commitWidgetValue to take in dirty parameter as we need to change dirty to true when committing the widget value we need to commit the widget value because when autofill is done, the widget value is not committed as thus username will show up to be an empty string without interaction GitHub Issue Link (if applicable) streamlit#7101 streamlit#7084 Testing Plan Explanation of why no additional tests are needed Unit Tests (JS and/or Python) readded tests I deleted before with some slight additions E2E Tests Any manual testing needed? yes it doesn't seem very doable to test autofill functionality. However, I can probably add some tests for commit value being called Contribution License Agreement By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
zyxue
pushed a commit
to zyxue/streamlit
that referenced
this issue
Apr 16, 2024
streamlit#7150) Describe your changes Change commitWidgetValue to take in dirty parameter as we need to change dirty to true when committing the widget value we need to commit the widget value because when autofill is done, the widget value is not committed as thus username will show up to be an empty string without interaction GitHub Issue Link (if applicable) streamlit#7101 streamlit#7084 Testing Plan Explanation of why no additional tests are needed Unit Tests (JS and/or Python) readded tests I deleted before with some slight additions E2E Tests Any manual testing needed? yes it doesn't seem very doable to test autofill functionality. However, I can probably add some tests for commit value being called Contribution License Agreement By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature:st.session_state
feature:st.text_input
priority:P2
status:confirmed
Bug has been confirmed by the Streamlit team
status:needs-triage
Has not been triaged by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
When I try to load a state from a file, the text input in some components do not get updated if the loading time is high.
Reproducible Code Example
Steps To Reproduce
Expected Behavior
I expected that, independently of the time.sleep parameter, all the text input would be correctly updated.
App after clicking the load button with time.sleep(0) (Expected behavior):
Current Behavior
App after clicking the load button with time.sleep(1), where some text inputs do not get updated:
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: