-
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
[$500] mWeb - The keyboard opens after requesting money in 1:1 DM #31588
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01cf43a55cc9e8c20b |
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb - The keyboard opens after requesting money in 1:1 DM What is the root cause of that problem?When the modal is closed there is a solution in the App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js Lines 491 to 496 in d15f6dc
What changes do you think we should make in order to solve the problem?We should replace the condition to use For example, useEffect(() => {
if (modal.isVisible && !prevIsModalVisible) {
// eslint-disable-next-line no-param-reassign
isNextModalWillOpenRef.current = false;
}
// We want to focus or refocus the input when a modal has been closed or the underlying screen is refocused.
// We avoid doing this on native platforms since the software keyboard popping
// open creates a jarring and broken UX.
if (!(shouldFocusInputOnScreenFocus && !isNextModalWillOpenRef.current && !modal.isVisible && isFocused && (prevIsModalVisible || !prevIsFocused))) {
return;
}
if (editFocused) {
InputFocus.inputFocusChange(false);
return;
}
focus();
}, [focus, prevIsFocused, editFocused, prevIsModalVisible, isFocused, modal.isVisible, isNextModalWillOpenRef]); What alternative solutions did you explore? (Optional)N/A POC poc-issue-31588.mp4Evidence with the focus using a Desktop Browser Note: It's just evidence to ensure that the focus still working in the Desktop Browser regration-test-evidence.mov |
@wlegolas Thanks for the proposal. Your RCA makes sense. The solution would work but I think we can just use |
Hi @s77rt thank you for your suggestion. I tested it here and works as expected, I updated my proposal to make this change. |
@wlegolas Thanks for the confirmation. Let's get this fixed 🚀 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Not overdue. We have a proposal. Waiting assignment |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @wlegolas 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
We're good here Melvin, assignment has been completed. |
Sorry for late. This was dupe of #27540. |
Hi @0xmiroslav and @s77rt do I need to stop the changes that I'm working on? I almost finished the changes and I'm just trying to generate the last test evidence using the Android Native. For all the other platforms I created the test evidence. |
I think so. As you see, that code part is being fully removed here - https://github.com/Expensify/App/pull/29199/files#diff-4e5fc12f136b6de8d193f9da851a61da009309c463307e00f444aaf0cd55fdd6L491-L510 |
Got it, sorry for the confusioin @wlegolas, let's go ahead and close this out. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.1.5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The keyboard does not open after requesting money in 1:1 DM
Actual Result:
The keyboard opens after requesting money in 1:1 DM
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6284591_1700517243513.Request.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: