-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD][$250] iOS - Task - Description field not focused and keyboard not opened automatically #51728
Comments
Triggered auto assignment to @nkuoch ( |
Triggered auto assignment to @sonialiap ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Production: ScreenRecording_10-30-2024.09-09-50_1.1.MP4 |
Edited by proposal-police: This proposal was edited at 2024-10-30 15:03:43 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Description field not focused and keyboard not opened automatically What is the root cause of that problem?We recently duplicated the logic of What changes do you think we should make in order to solve the problem?remove App/src/pages/tasks/NewTaskDescriptionPage.tsx Lines 85 to 90 in 8038216
and update this line here to pass
What alternative solutions did you explore? (Optional)Or we can add here This will also fix the issue
|
Job added to Upwork: https://www.upwork.com/jobs/~021851889241444905343 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
Calling this NAB as it's pretty easy to work around and I am going to try to get the deploy out early today |
Edited by proposal-police: This proposal was edited at 2024-10-31 13:16:24 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The description field is not focused and the keyboard is not opened. It takes a few taps to get the keyboard, and it can not be dismissed What is the root cause of that problem?
App/src/pages/tasks/NewTaskDescriptionPage.tsx Lines 85 to 90 in 8038216
What changes do you think we should make in order to solve the problem?
const {inputCallbackRef} = useAutoFocusInput(true); and this:
What alternative solutions did you explore? (Optional) |
Thanks for the proposals, everyone. Does anyone know why it has only happened recently? I believe it worked before. |
@hoangzinh As I mentioned, the bug appears in prod as well |
Edited by proposal-police: This proposal was edited at 2024-11-20 01:39:10 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Task description field is not focused automatically on iOS. What is the root cause of that problem?The root cause is in facebook/react-native#47576.
What changes do you think we should make in order to solve the problem?
Note The code below is just a feasibility test, not the final version. auto weakRuntimeScheduler =
contextContainer_->find<std::weak_ptr<RuntimeScheduler>>(
"RuntimeScheduler");
auto runtimeScheduler = weakRuntimeScheduler.has_value()
? weakRuntimeScheduler.value().lock()
: nullptr;
if (runtimeScheduler) {
runtimeScheduler->scheduleRenderingUpdate(
[delegate = delegate_,
shadowView = std::move(shadowView),
commandName,
args]() {
delegate->schedulerDidDispatchCommand(shadowView, commandName, args);
});
} else {
delegate_->schedulerDidDispatchCommand(shadowView, commandName, args);
}
What alternative solutions did you explore? (Optional)The upstream bug only affects Bridgeless mode, so disabling Bridgeless by reverting 3ddc1dd could also resolve this. |
@QichenZhu Interesting! Could you elaborate more on how this issue affects our current focus logic here? Thank you App/src/pages/tasks/NewTaskDescriptionPage.tsx Lines 85 to 90 in a3a270d
|
@hoangzinh On iOS,
Though it can be easily worked around by adding a delay, I suggest fixing the root cause because:
(More details can be found in upstream issues: facebook/react-native#47359 and facebook/react-native#47576.) |
Thanks for explanation @QichenZhu. I tried to apply your suggestion here but it doesn't work for me. Do I miss anything else? Screen.Recording.2024-11-20.at.00.36.55.mov |
@hoangzinh The code in your video is the same as mine, but the filename in the second line is strange. BeforeScreen.Recording.2024-11-20.at.2.49.19.PM.mp4AfterScreen.Recording.2024-11-20.at.2.58.55.PM.mp4 |
oh right, it works on my device. @QichenZhu proposal looks good to me. Let's wait internal engineer's decision on either waiting for upgrade React native or making a patch to our app. Link to proposal #51728 (comment) 🎀👀🎀 C+ reviewed |
Current assignee @nkuoch is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@nkuoch, @hoangzinh, @sonialiap Huh... This is 4 days overdue. Who can take care of this? |
cc @nkuoch waiting on your next review round |
@nkuoch @hoangzinh @sonialiap this issue is now 4 weeks old, please consider:
Thanks! |
Let's hold for react native update |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@nkuoch do you have a link to an issue that I can track for the hold? |
@nkuoch, @hoangzinh, @sonialiap Eep! 4 days overdue now. Issues have feelings too... |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@nkuoch can you help to put Hold title to this GH issue too? :thankyou: |
Update: The upstream team has decided not to include the fix in React Native 0.76. I noticed others are working on #54755 and #54759, so we can see if that solves the problem. |
Thank you @QichenZhu |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.55.6
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5143269
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The description field is focused and the keyboard is opened automatically
Actual Result:
The description field is not focused and the keyboard is not opened. It takes a few taps to get the keyboard, and it can not be dismissed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6649928_1730252709936.IMG_0770.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: