Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card number - support setting the input type #65

Closed
zshlomyz opened this issue May 24, 2021 · 1 comment
Closed

Card number - support setting the input type #65

zshlomyz opened this issue May 24, 2021 · 1 comment

Comments

@zshlomyz
Copy link

Hi,
In order to support setting the input type, it only required to change the type prop of getCardNumberProps (ln 159):

type: props.type || 'tel',

and then it can be configured like this:

{...getCardNumberProps({ onChange: handleChangeCardNumber, type: "password" })}

Can you provide me a contributing permission please?
Thanks

@zshlomyz
Copy link
Author

I've opened a PR for that - #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant