Closed frankcollins3 closed 1 year ago
const passwordinputhandler = (event:any) => {
let value:string = event.target.value
let hashedValue = "*".repeat(value.length)
$(event.target).attr('value', hashedValue)
SET_PASSWORD({payload: hashedValue})
}
the blue password input data is showing but the state is changing to be hashed values.
[3:00pm]
👍
const passwordinputhandler = (event:any) => { let value:string = event.target.value let hashedValue = "*".repeat(value.length) $(event.target).attr('value', hashedValue) SET_PASSWORD({payload: hashedValue}) }
thought I set the state already with this code the jquery setting of value doesn't persist
[3:03pm]
onmouseenter func: set ID of hovered-upon elem ("username", "pw", "email" etc). Set that string value from ID as input value
I'm curious as to how to use the onChange handler function instead of onMouseEnter function and to hash every character so that the user can't see what they're typing as they enter their password.