detect autofill javascript event code example
Example: react detect autofill
var input = document.getElementById('#someinput');
setTimeout(() => {
if (input.matches(':-internal-autofill-selected')) {
/* do something */
this.setState({ loginEnabled: true })
}
}, 500);