braintree / braintree-web

A suite of tools for integrating Braintree in the browser
https://developer.paypal.com/braintree/docs/start/hello-client/javascript/v3
MIT License
444 stars 134 forks source link

preventAutofill not working in Edge #676

Closed zamoraivanlee closed 1 year ago

zamoraivanlee commented 1 year ago

General information

Issue description

Even when option preventAutofill is set to true, Edge still suggests saved payment info.

This issue does not occur in Chrome during our tests.

Apparently, this is because Edge disregards autocomplete="off". Is it possible to implement a different approach?

image

nidhinarendra commented 1 year ago

Hi @zamoraivanlee We are looking into this issue. We will get back to you asap.

oscarleonnogales commented 1 year ago

Hi @zamoraivanlee,

You do make a great point that this isn't working in Edge, but unfortunately this is something that's "working as designed" at the browser level for Edge and other Chromium browsers, even though it's been reported as a bug several times from other developers.

These two issues (1, 2) are essentially saying the same thing. Additionally, since we're already adding the "correct" attributes to our inputs we decided that this is currently working as intended to not interfere with the behaviour in other browsers.

I do understand your desire to have complete control over input behaviour on your web application, but as it's working as intended at the browser level we currently won't be making any internal changes to modify this.