Skip to content

Commit

Permalink
Merge pull request #54125 from Expensify/revert-53949-fix/restore-foc…
Browse files Browse the repository at this point in the history
…us-after-modal-shown

[CP Staging] Revert "fix: restore focus after Modal gets hidden"

(cherry picked from commit 1327c23)

(CP triggered by luacmartins)
  • Loading branch information
rlinoz authored and OSBotify committed Dec 13, 2024
1 parent 9f0dc99 commit eb17551
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
21 changes: 0 additions & 21 deletions src/hooks/useRestoreInputFocus.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import useLocalize from '@hooks/useLocalize';
import useNetwork from '@hooks/useNetwork';
import usePaginatedReportActions from '@hooks/usePaginatedReportActions';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useRestoreInputFocus from '@hooks/useRestoreInputFocus';
import useStyleUtils from '@hooks/useStyleUtils';
import * as PolicyUtils from '@libs/PolicyUtils';
import * as ReportActionsUtils from '@libs/ReportActionsUtils';
Expand Down Expand Up @@ -269,7 +268,6 @@ function BaseReportActionContextMenu({
},
{isActive: shouldEnableArrowNavigation && shouldEnableContextMenuEnterShortcut, shouldPreventDefault: false},
);
useRestoreInputFocus(isVisible);

const openOverflowMenu = (event: GestureResponderEvent | MouseEvent, anchorRef: MutableRefObject<View | null>) => {
showContextMenu(
Expand Down

0 comments on commit eb17551

Please sign in to comment.