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
Duplicate - The menu doesn't closes immediately after duplicating the expense #78066
Version Number: v9.2.82-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#77343 Email or phone of affected tester (no customers):testpayment935@gmail.com Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: Windows 11 pro /Chrome App Component: Workspace Settings
Action Performed:
Navigate to staging.new.expensify.com
Log in using Track expense option
Go to self DM and create expense
Open the expense and click More
Click Duplicate option
Expected Result:
The menu should closes immediately
Actual Result:
The menu doesn't closes immediately in self DM page and in expanded RHP (expense report page)
👋 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:
Identify the pull request that introduced this issue and revert it.
What changes do you think we should make in order to solve the problem?
I think it's expected to see the menu after duplicating the expense, but if we want to close it immediately, we can remove the shouldCloseModalOnSelect: false prop
Yes, this is expected for now. The menu should only close immediately in the case of duplicating an expense where there are no other expenses, because in this case we navigate to a different view (this is to handle #77289).
Activity
melvin-bot commentedon Dec 18, 2025
Triggered auto assignment to @brianlee-expensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon Dec 18, 2025
Triggered auto assignment to @stitesExpensify (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Dec 18, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Dec 18, 2025
👋 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:
nyomanjyotisa commentedon Dec 19, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Duplicate - The menu doesn't closes immediately after duplicating the expense
What is the root cause of that problem?
The duplicate action in
MoneyRequestHeaderhasshouldCloseModalOnSelect: false, which prevents the menu from closing after duplicating an expenseApp/src/components/MoneyRequestHeader.tsx
Line 414 in 894cbc2
What changes do you think we should make in order to solve the problem?
I think it's expected to see the menu after duplicating the expense, but if we want to close it immediately, we can remove the
shouldCloseModalOnSelect: falsepropApp/src/components/MoneyRequestHeader.tsx
Lines 401 to 415 in 894cbc2
What alternative solutions did you explore? (Optional)
Create a ref for the
ButtonWithDropdownMenucomponent and useuseEffectto close the menu whenisDuplicateActivechanges from false to truejjcoffee commentedon Dec 19, 2025
Yes, this is expected for now. The menu should only close immediately in the case of duplicating an expense where there are no other expenses, because in this case we navigate to a different view (this is to handle #77289).
stitesExpensify commentedon Dec 19, 2025
Okay, since this is expected I'm going to close