Password fields don't update on tab when using 1password browser extension
Checklist
- [X] I have searched the existing issues for similar issues.
- [X] I added a very descriptive title to this issue.
- [X] I have provided sufficient information below to help reproduce this issue.
Summary
There's some strange interaction between the 1password browser extension and the password field. I'm not at all confident this is a streamlit issue, but wanted to make note of it in case there's an apparent fix on the streamlit side.
When adding a password field and using tab to navigate around a form, the password value entered does not get returned back to the app when using the 1password browser extension. If the extension is disabled, it works as expected. I did check the value of the input using document.getElementsByTagName("input")[0].value and it had the value as expected.
Reproducible Code Example
import streamlit as st
pwd = st.text_input("Password", type="password")
if st.button("Submit"):
st.write("Password:", pwd)
Steps To Reproduce
- Enable the 1password browser extension
- Click on password input
- Type some text
- Hit tab to go to button
- Hit enter to submit
Expected Behavior
Print the password entered
Current Behavior
Prints password: as if a password had not been entered
Note that the input borders remain red as if they haven't been submitted.
Is this a regression?
- [ ] Yes, this used to work in a previous version.
Debug info
- Streamlit version: 1.14.0
- Python version: 3.10.3
- Operating System: OSX
- Browser: Chrome 107.0.5304.87
- Virtual environment: pip + venv
Additional Information
No response
Are you willing to submit a PR?
- [ ] Yes, I am willing to submit a PR!
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users. If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.
To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.
Your vote helps us identify which enhancements matter most to our users.
Related to https://github.com/streamlit/streamlit/issues/10115