-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Get card type #37
Comments
Hey @vein101 |
@guastallaigor that is correct, I can add this change to my current PR. |
The watcher approach seems better to me. |
ref #36 |
Is your feature request related to a problem? Please describe.
I need to get the card type.
Describe the solution you'd like
Emit card type when it's set.
Describe alternatives you've considered
Use the regex in form component, but this is unnecessary duplication.
Additional context
Apologies for being over eager and ignoring this with my previous pull request.
I have 2 scenarios, adding a new card and listing existing cards.
Seeing as this already selects the type to display the logo according to the number entered when adding the card, may as well just emit (@get-type="useTypeValue") that instead of duplicating the work somewhere else.
When listing cards I have partial (masked) numbers so it cant figure out the type, so add a 'setType' prop that will display the correct logo.
The text was updated successfully, but these errors were encountered: