Sometimes, we want to fix React doesn’t render autocomplete off with JavaScript.
In this article, we’ll look at how to fix React doesn’t render autocomplete off with JavaScript.
How to fix React doesn’t render autocomplete off with JavaScript?
To fix React doesn’t render autocomplete off with JavaScript, we set the autoComplete
prop.
For instance, we write
<form autoComplete="off">
<input type="text" autoComplete="new-password" />
</form>
to set the autoComplete
prop to 'off'
on the form to turn off autocomplete on the form’s inputs.
Conclusion
To fix React doesn’t render autocomplete off with JavaScript, we set the autoComplete
prop.