-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Summary
The eye button that hides or shows the typed password on st.text_input is not working when viewed in Mozilla Firefox.
When you try to press the eye button it does not work (just doesn’t to anything) I also notice that it is outside the grey square for the typing box, and this is not the case for other browsers.
Steps to reproduce
Code snippet:
import streamlit as st
pwdCol1, pwdCol2 = st.beta_columns([1, 3])
with pwdCol1:
password = st.text_input('Insert password', value = '', max_chars = None, key = None, type = 'password')
if password == 'abc':
st.write('this is correct')
Expected behavior:
We would actually expect that they eye button would hide or reveal the text types in the password field.
Actual behavior:
Nothing happens when the eye button is pressed, and it is outside
Debug info
This is occurring on a number of tested versions: I have listed all the versions that this occurs on.
- Streamlit version: (get it with
$ streamlit version) 0.72 - Python version: (get it with
$ python --version) 3.7.9 and/or 3.8.5 - Using Conda? PipEnv? PyEnv? Pex? Conda
- OS version: Windows and Mac OSX
- Browser version: Firefox (only)
Additional information
Logged from this discussion: https://discuss.streamlit.io/t/show-password-button-eye-doesnt-work-in-column/7926
