0

Having an issue with autocomplete in chrome.

Stack: React, Redux-forms

autofill behavior

I turned it off by inserting random values to "autocomplete" input props and it works. But i still get suggests which look like this:

As far as I have been able to find out, this behavior is caused by input`s "name" attribute that Field component of redux-form uses. Chrome seems to memorize values by inputs name.

Does anyone know how to avoid this autofill behavior without using random field names ?

Lonnie Best
  • 9,936
  • 10
  • 57
  • 97
nctay
  • 31
  • 1

1 Answers1

0

The issue kinda resolved. Suggests were showed cause i set an input's name = "fullname". This behavior can be avoided by setting name with something more abstract, like "customerFN". To turn off autocomplete you can set autcomplete="nope" or anything not supported. "off" and "false" don't work anymore.

nctay
  • 31
  • 1