Password Visibility Toggle
I’m trying to use a typescript function in my page to change the icon that toggles the password visibility. this is how it’s supposed to work: i press a button (in this case, a clickable icon), the icon changes and the property “type” in the input should change to “text”, to allow the user to see what they have entered in this field. then, when pressed again, the icon should change to the default value and the input type should return to “password”.