Skip to content

eye button from text_input using password not working on Firefox #2495

@mesmith027

Description

@mesmith027

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

Picture:
Screen Shot 2020-12-11 at 12 59 08 PM

Logged from this discussion: https://discuss.streamlit.io/t/show-password-button-eye-doesnt-work-in-column/7926

Metadata

Metadata

Assignees

Labels

area:securityRelated to security concernsarea:stylingRelated to styling and appearancearea:widgetsRelated to widget elementstype:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions