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

Fix autofill browser by making sure we commit the value in text inputs #7150

Merged
merged 12 commits into from Aug 12, 2023

Conversation

willhuang1997
Copy link
Collaborator

@willhuang1997 willhuang1997 commented Aug 9, 2023

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.

@willhuang1997 willhuang1997 marked this pull request as ready for review August 10, 2023 00:25
@sfc-gh-wihuang sfc-gh-wihuang merged commit bf65018 into develop Aug 12, 2023
49 checks passed
@vdonato vdonato deleted the fix/7101 branch August 19, 2023 01:53
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request 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 pull request 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 pull request 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants