-
Notifications
You must be signed in to change notification settings - Fork 664
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
Prevent text change race condition when moving the focus #10255
base: master
Are you sure you want to change the base?
Conversation
Diffuse output:
APK
DEX
|
@cttsai-stripe just a heads up, this won't be pulled into stripe-react-native until we upgrade the react native version so we can update to the latest stripe-android version OR we backport the fix |
Do we do that in the rn repo or the android repo? |
We'd cherry-pick this commit to the release/20.52 branch and then do a release from there which would then be automatically picked up by stripe-react-native. I agree this doesn't seem high enough priority to do so, but I wouldn't respond on the issue that it's fixed in stripe-react-native |
Summary
https://jira.corp.stripe.com/browse/RUN_MOBILESDK-3861
Delay the focus change when completing each card input field.
Motivation
#10178
A rare race condition where
TextWatcher
removal during active text change callback iteration causesIndexOutOfBoundsException
, affecting our legacyCardInputWidget
,CardMultilineWidget
, andCardFormView
Testing