downshift icon indicating copy to clipboard operation
downshift copied to clipboard

Newer Chrome versions ignore autocomplete=off

Open fabb opened this issue 6 years ago • 4 comments

  • downshift version: 6.0.5
  • node version: 12.18.4
  • npm version: 6.14.6

Relevant code or config

See code for example here: https://www.downshift-js.com/use-multiple-selection.

What you did:

Click into the combobox of a multiselect combobox as the one here: https://www.downshift-js.com/use-multiple-selection.

What happened:

The native Chrome autofill menu appears above our custom downshift combobox menu.

screenshot-1

Reproduction repository:

I couldn't reproduce it on https://www.downshift-js.com/use-multiple-selection yet, maybe I would need to submit a form with some value so Chrome stores it in its autofill cache.

Problem description:

Chrome chose to ignore autocomplete="off": https://bugs.chromium.org/p/chromium/issues/detail?id=468153#c164

Suggested solution:

According to the Chrome issue comment, a custom value should be used, e.g. autocomplete="my-custom-field-type".

Not sure about cross-browser compatibility though.

fabb avatar Oct 22 '20 10:10 fabb

That thread is from 2016 🧐

silviuaavram avatar Oct 22 '20 15:10 silviuaavram

Interesting, we just started noticing it recently. Maybe the issue existed previosly too, but we didn‘t run into a case that persisted the address to the chrome autofill cache.

fabb avatar Oct 22 '20 15:10 fabb

Hey! we are also experiencing this. I've tried to override the downshift autocomplete by ...getInputProps({ autocomplete: "nope" }) but didn't succeed. Any ideas on this?

mglavall avatar Nov 02 '21 10:11 mglavall

You can override by adding props after the getInputCall, but your example should work as well. Can you check the code and see if there is a bug?

On Tue, 2 Nov 2021 at 10:52, Marçal @.***> wrote:

Hey! we are also experiencing this. I've tried to override the downshift autocomplete by ...getInputProps({ autocomplete: "nope" }) but didn't succeed. Any ideas on this?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/downshift-js/downshift/issues/1189#issuecomment-957327800, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWAZAHU4ZFJ2LXAMH7YREDUJ67FRANCNFSM4S2775NA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

silviuaavram avatar Nov 02 '21 11:11 silviuaavram