Issue
Rendering <PaymentElement /> from the library renders the card number input inside the payment form. The input field for card number created has the attribute autocomplete="billing cc-number" which is invalid for accessibility. Based on MDN the value billing can only be combined with address fields. This happens when the address element is also present in the form.
Expected Result
The card number input should only have autocomplete=cc-number i.e., without billing or shipping
Reproduction
Render the following react component and inspect the card number input on browser. Notice that the input has autocomplete=billing cc-number.
What happened?
Issue Rendering
<PaymentElement />
from the library renders the card number input inside the payment form. Theinput
field for card number created has the attributeautocomplete="billing cc-number"
which is invalid for accessibility. Based on MDN the valuebilling
can only be combined with address fields. This happens when the address element is also present in the form.Expected Result The card number input should only have
autocomplete=cc-number
i.e., withoutbilling
orshipping
Reproduction Render the following react component and inspect the card number
input
on browser. Notice that the input hasautocomplete=billing cc-number
.OR you can inspect the input on the documentation example here.
Environment
No response
Reproduction
No response