-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 #11768] [$1000] Android - Split Bill - Keyboard is not dismissed for a brief moment after changing currency #13449
Comments
Triggered auto assignment to @JmillsExpensify ( |
Proposal:- In IOUCurrencySelection.js we need to pass Keyboard.dismiss(); in confirmCurrencySelection function. diff --git a/src/pages/iou/IOUCurrencySelection.js b/src/pages/iou/IOUCurrencySelection.js
index b7affe898..6525a205f 100644
--- a/src/pages/iou/IOUCurrencySelection.js
+++ b/src/pages/iou/IOUCurrencySelection.js
@@ -1,4 +1,5 @@
import React, {Component} from 'react';
+import { Keyboard } from 'react-native';
import PropTypes from 'prop-types';
import {withOnyx} from 'react-native-onyx';
import _ from 'underscore';
@@ -105,6 +106,7 @@ class IOUCurrencySelection extends Component {
*/
confirmCurrencySelection(option) {
IOU.setIOUSelectedCurrency(option.currencyCode);
+ Keyboard.dismiss();
Navigation.goBack();
}
After Fix:- Screen.Recording.2022-12-08.at.6.19.56.AM.mov |
Ok, I can reproduce this. Screen.Recording.2022-12-08.at.21.29.28.mov |
Here's my take: This is a pretty cosmetic bug in my opinion, as it doesn't really affect the user experience and the keyboard does dismiss automatically. So I think the value of fixing this big is pretty low. That said, if we can find a simple solution for this then it'll be worth it. Let's open this up for proposals and see where we get. |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~0170d39fa04a453e03 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Triggered auto assignment to @techievivek ( |
@eVoloshchak We have two proposals above already. While those technically shouldn't have been posted yet, we'll fix that in the future by locking the issue. For now, let's go ahead and review those. Thanks! |
Proposal
confirmCurrencySelection(option) {
IOU.setIOUSelectedCurrency(option.currencyCode);
+ Keyboard.dismiss();
Navigation.goBack();
}
render() {
const headerMessage = this.state.searchValue.trim() && !this.state.currencyData.length ? this.props.translate('common.noResultsFound') : '';
return (
<ScreenWrapper>
<HeaderWithCloseButton
title={this.props.translate('iOUCurrencySelection.selectCurrency')}
onCloseButtonPress={() => {
+ Keyboard.dismiss();
Navigation.goBack();
}}
/>
<OptionsSelector
sections={this.getSections()}
onSelectRow={this.confirmCurrencySelection}
value={this.state.searchValue}
onChangeText={this.changeSearchValue}
placeholderText={this.props.translate('common.search')}
headerMessage={headerMessage}
/>
</ScreenWrapper>
);
}
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Updated ProposalAs keyboard dismiss issue presists in multiple occasions when ever diff --git a/src/libs/Navigation/Navigation.js b/src/libs/Navigation/Navigation.js
index e937e5015..05336e251 100644
--- a/src/libs/Navigation/Navigation.js
+++ b/src/libs/Navigation/Navigation.js
@@ -109,6 +109,7 @@ function goBack(shouldOpenDrawer = true) {
return;
}
+ Keyboard.dismiss();
navigationRef.current.goBack();
}
After Fix:- Screen.Recording.2022-12-09.at.10.15.16.AM.mov |
Proposaldiff --git a/src/libs/Navigation/Navigation.js b/src/libs/Navigation/Navigation.js
index e937e5015..8c484ce1e 100644
--- a/src/libs/Navigation/Navigation.js
+++ b/src/libs/Navigation/Navigation.js
@@ -1,6 +1,5 @@
import _ from 'underscore';
import lodashGet from 'lodash/get';
-import {Keyboard} from 'react-native';
import {DrawerActions, getPathFromState, StackActions} from '@react-navigation/native';
import Onyx from 'react-native-onyx';
import Log from '../Log';
@@ -66,7 +65,6 @@ function openDrawer() {
}
navigationRef.current.dispatch(DrawerActions.openDrawer());
- Keyboard.dismiss();
}
/**
diff --git a/src/libs/Navigation/NavigationRoot.js b/src/libs/Navigation/NavigationRoot.js
index 775d89f31..9dba24585 100644
--- a/src/libs/Navigation/NavigationRoot.js
+++ b/src/libs/Navigation/NavigationRoot.js
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
+import {Keyboard} from 'react-native';
import {NavigationContainer, DefaultTheme, getPathFromState} from '@react-navigation/native';
import {useFlipper} from '@react-navigation/devtools';
import Navigation, {navigationRef} from './Navigation';
@@ -60,7 +61,10 @@ const NavigationRoot = (props) => {
style={styles.navigatorFullScreenLoading}
/>
)}
- onStateChange={parseAndLogRoute}
+ onStateChange={() => {
+ Keyboard.dismiss();
+ parseAndLogRoute();
+ }}
onReady={props.onReady}
theme={navigationTheme}
ref={navigationRef} DetailsThis issue is very similar to this one #11970
Maybe we should put this on hold instead? |
That's an interesting point. though the linked issue is actually on hold for the navigation reboot, so I'm more inclined to also hold this issue on #11768 as well. I'm actually going to preemptively do that, though still welcome thoughts from others. @eVoloshchak @techievivek |
Agree with @s77rt the better solution will be to keep the logic in |
Removed the daily since this will be on hold for a while. |
Given that we're taking our time on the navigation reboot, I switched out weekly for monthly. |
@JmillsExpensify Am I eligible for reporting bonus ? |
Sorry I missed your question in this issue, though I believe I answered it in another one. We pay out the reporting bonus when PRs are merged and the regression period has past. So essentially, when a bug is fixed, all contributors are paid out at the same time. Thank you! |
Removed |
On hold for navigation reboot project. |
Interesting @0xmiroslav, I just reviewed a similar proposal today for this issue. |
@techievivek Just a thought if we end up fixing the issue in #15085 will i be eligible for reporting bonus ? As i reported this issue initially issue #15085 is a dupe of this issue ? |
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@syedsaroshfarrukhdot it appears this bug, which you reported, precedes the two you linked so you would be eligible for the bonus. |
Thank you. Will apply on the job when time comes. 😃 |
@mallenexpensify as it seems issue was resolved in #15085 and it have been closed. Shouldn't we close this issue as well ? |
I'm not longer able to reproduce this issue, so I'm going to comment in the linked issue and clear up the reporting bonus. |
@JmillsExpensify I think we can close this issue now as according to this comment everyone agrees this issue is no longer reproducible and fixed. |
@JmillsExpensify bumping it for closing and reporting bonus payment. |
@syedsaroshfarrukhdot can you please accept the job and reply here once you have? |
@mallenexpensify Accepted on Upwork |
Paid, sorry it took a minute @syedsaroshfarrukhdot , thanks for the bumps. Think this can be closed now, reopen if neded. |
Thanks for closing the loop at on this one @mallenexpensify! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Actions Performed:
Expected Result:
Keyboard dismissed
Actual Result:
Keyboard Appears For A brief Second.
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.37-2
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Record_2022-12-08-05-56-42.mp4
az_recorder_20221208_181448.mp4
Expensify/Expensify Issue URL:
Issue reported by: @syedsaroshfarrukhdot
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1670461227037229
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: