We want to disable autocomplete in Chrome browser in our React JavaScript application. We have tried bunch of solution available on the Internet but nothing wor
Nothing worked for me including new-password, so this is how I did:
new-password
onFocus={(event) => { event.target.setAttribute('autocomplete', 'off'); console.log(event.target.autocomplete); }}