React-md: There isn't possible to remove PasswordButton in TextField with type="password"

Created on 11 May 2018  路  4Comments  路  Source: mlaursen/react-md

In some cases I have to disallow showing up password by button. For example, someone has to sign in to application and his workmate or boss is behind him. He writes password, types TAB key and without notice what element is focused, press Enter. Instead of sign into application, his password is shown.

I can set password icon to null to hide PasswordButton, but it's still there and it can be clicked or focused.

bug enhancement

All 4 comments

I think I'll update it so that setting the passwordIcon to null will no longer render the show password button.

I'm having the same.
If I set passwordIcon to null it will hide the icon indeed but it would still be clickable =/

pass

Setting the passwordIcon to null will now correctly remove the password toggle button.

thanks!

Was this page helpful?
0 / 5 - 0 ratings