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

STPPaymentCardTextField shouldn't attempt to becomeFirstResponder while being dismissed #1393

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

davidme-stripe
Copy link
Contributor

Summary

In #1009 STPPaymentCardTextField started calling [self.numberField becomeFirstResponder] when being presented in certain situations, but we don't want that behavior if the card field is in the process of being dismissed.

Motivation

Without this fix, the keyboard quickly appears and disappears when the another field is dismissed while the card number is invalid, which is visually distracting and sends spurious keyboardWillShow notifications. This was filed as #1388.

Testing

Tested in the UI Examples project on my iPhone running iOS 13.

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

Successfully merging this pull request may close these issues.

3 participants