App: [HOLD for payment 2022-12-20] [HOLD] [$1000] Mobile keyboard doesn't include `/` char when expiration field is in focus
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
CC @Gonals
Action Performed:
- Navigate to Profile > Payments > Add A debit Card
- Fill in the data until you get to the expiration date field
- Select the expiration date input
- Enter 2 characters
Expected Result:
- Either the
/
char should appear in the soft keyboard, or we should automatically add it for users
Actual Result:
- Neither the
/
char appears in the soft keyboard, or do we automatically add it for users
Note: Users still seem to pass validation without it, but this is still confusing
Platform:
Where is this issue occurring?
- iOS
- Android
- Mobile Web
Version Number: all Reproducible in staging?: yes Reproducible in production?: yes Email or phone of affected tester (no customers): all
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01f986d0cdc2cf028e
- Upwork Job ID: 1597827787499143168
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 49 (36 by maintainers)
Paid @thesahindia and @Puneet-here the price + bonus for this issue.
Proposal
We can use
keyboardType='numeric'
specific for Android.https://github.com/Expensify/App/blob/3e47bce7f7d98812735ba9b00de282a4fa9345ed/src/pages/settings/Payments/AddDebitCardPage.js#L141
Proposal
Form
logic. And need to update the ourForm
as @thesahindia mentioned.shouldAppendSlash
props to theTextInput
inAddDebitCartPage.js
Form
component like below:https://user-images.githubusercontent.com/29966461/204745809-efc937bd-4147-47c1-b0da-d4a9586c2b51.mov
I’m going to close this due to the above reasoning, but let me know if you disagree @mallenexpensify and we can discuss further
Hey, sorry but I ran out of time for this today. Will return to this tomorrow.
^ This was not a regression
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Oh sorry, I can’t read. That makes sense, thanks!
Updated proposal
Change the copy to
MMYY
https://github.com/Expensify/App/blob/498e23273ff4c16431a3aa29229ca6aacd6ece41/src/languages/en.js#L421 Change the copy toMMAA
https://github.com/Expensify/App/blob/498e23273ff4c16431a3aa29229ca6aacd6ece41/src/languages/es.js#L421 Pass maxLength={4} below https://github.com/Expensify/App/blob/498e23273ff4c16431a3aa29229ca6aacd6ece41/src/pages/settings/Payments/AddDebitCardPage.js#L137cc: @Julesssss