Skip to content

Commit

Permalink
Add credit card autocomplete attributes to input
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Dec 11, 2017
1 parent 337dd0c commit 1049fa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class CreditCardInput extends Component {
>
<Input
id="card-number"
autocomplete="cc-number"
className={`credit-card-input ${inputClassName}`}
pattern="[0-9]*"
placeholder="Card number"
Expand All @@ -317,6 +318,7 @@ class CreditCardInput extends Component {
<InputWrapper inputStyled={inputStyle} data-max="MM / YY 99">
<Input
id="card-expiry"
autocomplete="cc-exp"
className={`credit-card-input ${inputClassName}`}
pattern="[0-9]*"
placeholder="MM / YY"
Expand All @@ -331,6 +333,7 @@ class CreditCardInput extends Component {
<InputWrapper inputStyled={inputStyle} data-max="999999">
<Input
id="cvc"
autocomplete="cc-csc"
className={`credit-card-input ${inputClassName}`}
pattern="[0-9]*"
placeholder="CVC"
Expand Down

0 comments on commit 1049fa1

Please sign in to comment.