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.

Commit 7543e33 removed attribute autocomplete="off" on input

See original GitHub issue

Hello,

I just switched to this fork and I notice that the attribute autocomplete="off" isn’t added anymore to the input field since commit 7543e33. As a consequence I get the browser suggestions on top of the ones provided by this library.

I cannot find any open issues about that so I’m probably missing something but I can’t figure out what.

https://github.com/corejavascript/typeahead.js/commit/7543e33e68463495272c47acdb58858c603f92a5#diff-612e04832149bb9432629c576beb2e07L223

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dlong500commented, Sep 29, 2017

What’s the status of this? I can’t see a reason why anyone would ever want the browser to popup a built-in autocomplete list on a typeahead input. Doesn’t that defeat the whole point? There’s a whole can of worms started by the Chrome developers regarding not respecting the autocomplete="off" directive in certain scenarios, but that’s no reason to remove it from the typeahead codebase.

If I manually add it back then it works to prevent the browser’s autocomplete list from obscuring the typeahead suggestions, so I’m not sure why it hasn’t been added back. Are we just supposed to add it ourselves at this point? Sorry for the barrage of questions; I’m just not sure why this issue hasn’t had activity since 6 months ago and it appears autocomplete="off" is still not present in the codebase.

0reactions
simplenotezycommented, Jan 10, 2020

Solution: autocomplete="some-typeahead-field" https://bugs.chromium.org/p/chromium/issues/detail?id=468153#c164

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Turn Off Autocomplete for Input - W3Schools
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 >
Disable autocomplete on login page (#27125) · Issues - GitLab
Solution. Turn off the AUTOCOMPLETE attribute in any HTML INPUT element that is used for passwords or contains sensitive information. This can ...
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 >
GitHub - terrylinooo/disableautofill.js: Disable Chrome autofill ...
Disable Chrome autofill and autocomplete. ... Add an attribute autocomplete="off" on form. ... If you want to remove the attached events. daf.destory(); ...
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