-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: prevent crash on Backspace press when magic input is not focused #35454
Conversation
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@DylanDylann A couple of notes since
|
@akinwale The new solution is not worked for me. I think we should use early return as mentioned in your proposal |
Could you check the crash log to see if it's failing on the focus method? Can you also verify that you pulled the latest head from the PR and it's the actual branch you're testing on? |
@akinwale Ah I see, It crashes because my console.log. Your change looks good |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromec.moviOS: Nativeios.moviOS: mWeb Safaris.movMacOS: Chrome / SafariThere are no number padMacOS: DesktopThere are no number pad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good to me
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
1 similar comment
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.37-7 🚀
|
Details
This prevents a crash from occurring in an empty magic code input when the Backspace button on the big number pad (BNP) is pressed after dismissing the soft keyboard on native.
Fixed Issues
$ #34875
PROPOSAL: #34875 (comment)
Tests
Offline tests
Same as tests.
QA Steps
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
34875-android-native.mp4
Android: mWeb Chrome
34875-android-chrome.mp4
iOS: Native
34875-ios-native.mp4
iOS: mWeb Safari
34875-ios-safari.mp4
MacOS: Chrome / Safari
MacOS: Desktop