[CP Staging] Revert "fix: device back button doesn't close FAB menu"#81345
[CP Staging] Revert "fix: device back button doesn't close FAB menu"#81345chuckdries merged 1 commit intomainfrom
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9d2d60718
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| <PopoverMenu | ||
| onClose={hideCreateMenu} | ||
| shouldHandleNavigationBack | ||
| shouldEnableMaxHeight={false} | ||
| isVisible={isCreateMenuActive && (!shouldUseNarrowLayout || isFocused)} | ||
| anchorPosition={styles.createMenuPositionSidebar(windowHeight)} |
There was a problem hiding this comment.
Restore back-button handling for FAB popover
Without passing shouldHandleNavigationBack, the popover no longer installs the window.history handler (see src/components/Modal/index.tsx), so on mobile web or browsers with a back button, pressing back will navigate away from the current route instead of just closing the FAB create menu. This regresses the expected overlay behavior and can cause users to lose context when they intended to dismiss the menu.
Useful? React with 👍 / 👎.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/chuckdries in version: 9.3.11-42 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀
|
straight revert of #80314 1a19a89
$ #81239
Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari