-
Notifications
You must be signed in to change notification settings - Fork 997
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 sends keyboardWillHideNotification when begin editing the field. #1388
Comments
Hey @rus64, I'm seeing this happen when a hardware keyboard is connected (or when "Keyboard" -> "Connect Hardware Keyboard" is enabled in the Simulator menu, which is the default option), but not when it's disabled. Without a hardware keyboard, tapping on the field triggers a |
Hi @davidme-stripe, thanks for your response. Making sure that setting was disabled did indeed avoid the mentioned issue, however, now when dismissing the keyboard both the |
On further inspection this is the order of events that I am seeing:
It seems to me that maybe the keyboard is not properly dismissed after resigning the card text field. The last three notifications then cause weird behaviour in our app. Tested on an iPhone 6s on iOS 12.2 (real device not sim). |
A temporary workaround that I've found: Instead of calling From the
|
Thanks for the additional info! I've tried to patch this in the branch |
@davidme-stripe, thanks for taking a look! I'm going to try it this morning. |
Unfortunately the patch #1393 does not fix the issue for me. Still seeing unexpected keyboard behaviour when calling |
@rus64, I can't seem to reproduce the issue after the patch.
What behavior are you seeing after the new patch? |
Ah, I do apologise; looks like I did not properly build the framework from the master branch. I tested again this morning and confirm that the issue is fixed. Thank you for your time and attention on this! |
This is fixed in 18.0.0. Thanks for filing! |
Summary
When tapping on
STPPaymentCardTextField
to begin editing the field one would expectUIResponder.keyboardWillShowNotification
to be sent, but instead theUIResponder.keyboardWillHideNotification
is sent. This results in great difficulty in managing the View in relation to the keyboard.Code to reproduce
iOS version
<= iOS 12
Installation method
Carthage
SDK version
17.0.1
The text was updated successfully, but these errors were encountered: