braintree-web
braintree-web copied to clipboard
Hosted fields: New cardholderName input shows numeric keypad
General information
SDK version: 3.91.0 Environment: any Browser and OS: any
Issue description
Here's how the field is rendered in the iframe:
<input
autocomplete="cc-name"
type="text"
autocorrect="off"
autocapitalize="none"
spellcheck="false"
class="cardholderName"
data-braintree-name="cardholderName"
name="cardholder-name"
id="cardholder-name"
inputmode="numeric"
placeholder="Name on card"
maxlength="255"
aria-describedby="field-description-cardholderName"
>
I believe inputmode should be set to "text" instead of "numeric"
I am seemingly able to make it work if I add "type: text" to the fields option, but I still believe the default should be text and not numeric.
fields: {
cardholderName: { selector: "#cardholder-name", placeholder: "Name on card", type: "text"},
...
}
can you please assign this issue to me?