You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The description when clicked again shows blank #21139
Again click on the description and without performing action just click on back button
Notice that now the description is shown as empty
Expected Result:
The description when cliked again should not show blank
Actual Result:
The description when clicked again shows blank
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.29-0 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 Notes/Photos/Videos: Any additional supporting documentation
Looks like something related to react-navigation may have been mentioned in this issue discussion.
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 DeprecatedCustomActions.js files should not be accepted.
changed the title [-]The description when clicked again shows blank[/-][+][Hold on https://github.com/Expensify/App/pull/17964] The description when clicked again shows blank[/+]on Jun 21, 2023
changed the title [-][Hold on https://github.com/Expensify/App/pull/17964] The description when clicked again shows blank[/-][+]The description when clicked again shows blank[/+]on Jun 26, 2023
Activity
melvin-bot commentedon Jun 20, 2023
Triggered auto assignment to @laurenreidexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 20, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)kushu7 commentedon Jun 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The description when clicked again shows blank
What is the root cause of that problem?
On back press we are resetting comment here.
App/src/pages/iou/MoneyRequestDescriptionPage.js
Lines 42 to 45 in 8ba2234
What changes do you think we should make in order to solve the problem?
we should update this to return previous comment instead of blank.
and we need to bind
onBackButtonPressin constructor also so we can accessthisWhat alternative solutions did you explore? (Optional)
We can also remove this
IOU.setMoneyRequestDescription(this.props.iou.comment);fromonBackButtonPress.melvin-bot commentedon Jun 20, 2023
Looks like something related to
react-navigationmay have been mentioned in this issue discussion.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
DeprecatedCustomActions.jsfiles should not be accepted.Feel free to drop a note in #expensify-open-source with any questions.
Nodebrute commentedon Jun 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The description when clicked again shows blank
What is the root cause of that problem?
Here we are setting it to empty string https://github.com/Expensify/App/blob/8ba223457b9a2e8d02f1c57d7c21fd7f0c523573/src/pages/iou/MoneyRequestDescriptionPage.js#L42
onBackButtonPress() {
IOU.setMoneyRequestDescription('');
Navigation.goBack();
}
What changes do you think we should make in order to solve the problem?
Remove it from here and just navigate.
onBackButtonPress() {
Navigation.goBack();
}
What alternative solutions did you explore? (Optional)
dukenv0307 commentedon Jun 21, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The description when clicked back button shows blank
What is the root cause of that problem?
App/src/pages/iou/MoneyRequestDescriptionPage.js
Line 43 in 342d4fd
we reset the description when clicking back button
What changes do you think we should make in order to solve the problem?
We should remove the onBackButtonPress field here
App/src/pages/iou/MoneyRequestDescriptionPage.js
Lines 65 to 68 in 342d4fd
Because in HeaderWithBackButton Component we defined the default onBackButtonPress function
App/src/components/HeaderWithBackButton.js
Line 123 in 342d4fd
We also doing the same thing in the TaskDescriptionPage
App/src/pages/tasks/TaskDescriptionPage.js
Line 67 in 342d4fd
What alternative solutions did you explore? (Optional)
bernhardoj commentedon Jun 21, 2023
The page is being refactored here #17964 and the issue won't exist anymore.
[-]The description when clicked again shows blank[/-][+][Hold on https://github.com/Expensify/App/pull/17964] The description when clicked again shows blank[/+]laurenreidexpensify commentedon Jun 21, 2023
Let's wait for #17964 to get to staging and confirm this is still reproducible, and then we can close
laurenreidexpensify commentedon Jun 22, 2023
PR has been merged, but not on staging yet
laurenreidexpensify commentedon Jun 26, 2023
PR has been deployed to prod, gonna test now and confirm if we can close
laurenreidexpensify commentedon Jun 26, 2023
Confirmed - this is no longer reproducible. Closing
[-][Hold on https://github.com/Expensify/App/pull/17964] The description when clicked again shows blank[/-][+]The description when clicked again shows blank[/+]