Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React doesn't render autocomplete off

How do I make react render it?

<input     id={field.name}     className="form-control"     type="text"     placeholder={field.name}     autocomplete="off"     {...field}/> 
like image 453
Yaroslav Avatar asked May 28 '16 20:05

Yaroslav


People also ask

How do I turn off autocomplete in Formik?

Easy solution: Instead of autocomplete='off', use autoComplete='off' and BANG!

How do you handle autofill in react?

The React AutoComplete supports the autofill behavior with the help of autofill property. Whenever you change the input value and press the down key, the AutoComplete will autocomplete your data by matching the typed character. Suppose, if no matches found then, AutoComplete doesn't suggest any item.

How do I turn off autocomplete in HTML?

Use the <input> tag with autocomplete attribute. Set the autocomplete attribute to value “off”.

How do I turn off autofill in react native?

How to disable autocomplete on react native paper TextInput? with autoComplete="off" render autocomplete="noop" on the web. Bookmark this question. Show activity on this post. The autoComplete="off" is replaced with autocomplete="noop" in the rendered HTML, which cause the auto complete not to be disabled.


1 Answers

Capital "C" autoComplete. This is mentioned in the React documentation:

https://reactjs.org/docs/dom-elements.html#all-supported-html-attributes

like image 65
azium Avatar answered Oct 07 '22 01:10

azium