question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input should set autocomplete="off" by default

See original GitHub issue

I am placing this input into a form with other inputs which I still intend to have the autocompletion function, so I can’t turn off autocompletion for the whole form. How to set the input attribute autocomplete to off? Doesn’t it make sense also for this input box to automatically disable autocompletion?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ericluwjcommented, Aug 8, 2017

It should be:

const inputProps = {
  onChange: this.handleChange,
  value: this.state.address,
  autoComplete: 'off'
}

Note it is autoComplete, not autocomplete.

0reactions
rachelleahrcommented, Mar 22, 2018

@lauterry Thanks! That fixed it for me. @kenny-hibino can the default be switched to disabled instead of off?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to turn off form autocompletion - Web security | MDN
This article explains how a website can disable autocomplete for form fields.
Read more >
How to Disable the Browser Autocomplete and Autofill on ...
To disable the autocomplete of text in forms, use the autocomplete attribute of <input> and <form> elements. You'll need the "off" value of...
Read more >
How To Turn Off Autocomplete for Input
Learn how to disable autocomplete of an input field. Turn Off Autocomplete. Use the autocomplete attribute to turn off autocomplete for input fields: ......
Read more >
How to disable autocomplete of an HTML input field
In this article, we will learn how to disable or off autocomplete features of a particular input field in HTML form.
Read more >
Chrome ignores autocomplete="off"
If a site sets autocomplete="off" for a form, and the form includes username and password input fields, then the browser will still offer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found