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
[Due for payment 2025-10-01] [$250] iOS - Reports - Filter buttons are no longer responsive after deleting expense #70209
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
changed the title [-]iOS - Reports - Filter buttons are no longer responsive after deleting expense[/-][+][$250] iOS - Reports - Filter buttons are no longer responsive after deleting expense[/+]on Sep 16, 2025
We attempt to reset willAlertModalBecomeVisible to false when hiding the modal, but due to a timing issue in the iOS modal lifecycle, the reset is skipped and the flag remains stuck as true.
onModalWillHide={() => {
// Reset willAlertModalBecomeVisible when modal is about to hide
// This ensures it's cleared before any other components check its value
if (areAllModalsHidden()) {
willAlertModalBecomeVisible(false);
}
onModalWillHide?.();
}}
2 Remove willAlertModalBecomeVisible in hideModal func
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
none
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Or we can use some delay here (requestAnimationFrame, setTimeOut....)
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.17-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@c3024@CortneyOfstad The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: iOS specific bug. No PR can be held responsible.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not a critical bug.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
None
Test:
Launch the Expensify app.
Navigate to workspace chat.
Create the first expense in workspace chat.
Create the second expense in workspace chat.
Go to Reports > Menu > Submit.
Expand a report row.
Long tap on the report row and select it.
Unselect one of the expenses in the report.
Tap the dropdown button and choose Delete.
Confirm deletion of the expense.
Tap the app back button to exit selection mode.
Tap any filter button (Type, Status, Date, From).
Verify that the filter buttons are responsive after deleting the expense.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Activity
melvin-bot commentedon Sep 9, 2025
Triggered auto assignment to @CortneyOfstad (
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 Sep 12, 2025
@CortneyOfstad Whoops! This issue is 2 days overdue. Let's get this updated quick!
[-]iOS - Reports - Filter buttons are no longer responsive after deleting expense[/-][+][$250] iOS - Reports - Filter buttons are no longer responsive after deleting expense[/+]melvin-bot commentedon Sep 16, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021968064923574859982
melvin-bot commentedon Sep 16, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (
External)huult commentedon Sep 17, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-09-17 03:24:37 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Filter buttons are no longer responsive after deleting expense
What is the root cause of that problem?
After we delete an expense,
willAlertModalBecomeVisibleis alwaystrue. That’s why we can’t update the state totrueto display the popover.App/src/components/Search/FilterDropdowns/DropdownButton.tsx
Line 68 in 0a2ea70
We attempt to reset
willAlertModalBecomeVisibletofalsewhen hiding the modal, but due to a timing issue in the iOS modal lifecycle, the reset is skipped and the flag remains stuck astrue.App/src/components/Modal/BaseModal.tsx
Line 112 in e830732
What changes do you think we should make in order to solve the problem?
We should clear the flag earlier in the modal hide lifecycle to ensure it is reset before other components check its value.
1 Add
willAlertModalBecomeVisibleinonModalWillHideApp/src/components/Modal/BaseModal.tsx
Line 321 in e830732
update to:
onModalWillHide={() => { // Reset willAlertModalBecomeVisible when modal is about to hide // This ensures it's cleared before any other components check its value if (areAllModalsHidden()) { willAlertModalBecomeVisible(false); } onModalWillHide?.(); }}2 Remove
willAlertModalBecomeVisibleinhideModalfuncApp/src/components/Modal/BaseModal.tsx
Line 108 in e830732
const hideModal = useCallback( (callHideCallback = true) => { shouldCallHideModalOnUnmount.current = false; if (shouldSetModalVisibility && !Navigation.isTopmostRouteModalScreen()) { setModalVisibility(false); } if (callHideCallback) { onModalHide(); } onModalDidClose(); ComposerFocusManager.refocusAfterModalFullyClosed(uniqueModalId, restoreFocusType); }, [shouldSetModalVisibility, onModalHide, restoreFocusType, uniqueModalId], );Screen.Recording.2025-09-17.at.10.21.16.mov
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
none
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Or we can use some delay here (requestAnimationFrame, setTimeOut....)
App/src/components/Modal/BaseModal.tsx
Line 112 in e830732
17 remaining items
melvin-bot commentedon Sep 24, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Sep 24, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.17-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-10-01. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Sep 24, 2025
@c3024 @CortneyOfstad The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
CortneyOfstad commentedon Sep 30, 2025
Payment set for tomorrow! @c3024 can you please complete the checklist to make sure there is not a delay? Thank you!
c3024 commentedon Oct 1, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: iOS specific bug. No PR can be held responsible.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not a critical bug.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
CortneyOfstad commentedon Oct 2, 2025
Payment Summary
@huult — paid $250 via Upwork
@c3024 — to be paid $250 via NewDot
Regression Test
https://github.com/Expensify/Expensify/issues/553517
JmillsExpensify commentedon Oct 28, 2025
$250 approved for @c3024