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

Update ExpiryDateEditText allowlist #2976

Merged
merged 1 commit into from
Oct 27, 2020
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

@mshafrir-stripe mshafrir-stripe commented Oct 27, 2020

Only allow digits and / by setting the input type to number
and setting android:digits to the allowlist.

This prevents . and - from being entered as input.

Fixes #2972

Only allow digits and the `/` by setting the input type to `number`
and setting `android:digits` to the allowlist.

This prevents `.` and `-` from being entered as input.

Fixes #2972
@mshafrir-stripe mshafrir-stripe merged commit 7fc7e0f into master Oct 27, 2020
@mshafrir-stripe mshafrir-stripe deleted the fix-expiry-input branch October 27, 2020 21:51
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

Successfully merging this pull request may close these issues.

Expiry can't input 12223 five number
2 participants