Skip to content

Commit 1e82fae

Browse files
authored
Merge pull request #57309 from twilight2294/issue/56747
Fix: Keyboard remains opened when opening the "Flag as offensive" page
2 parents 97d3da9 + 1e30e86 commit 1e82fae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/home/report/ContextMenu/ContextMenuActions.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,11 @@ const ContextMenuActions: ContextMenuAction[] = [
685685

686686
const activeRoute = Navigation.getActiveRoute();
687687
if (closePopover) {
688-
hideContextMenu(false, () => Navigation.navigate(ROUTES.FLAG_COMMENT.getRoute(reportID, reportAction?.reportActionID, activeRoute)));
688+
hideContextMenu(false, () => {
689+
KeyboardUtils.dismiss().then(() => {
690+
Navigation.navigate(ROUTES.FLAG_COMMENT.getRoute(reportID, reportAction?.reportActionID, activeRoute));
691+
});
692+
});
689693
return;
690694
}
691695

0 commit comments

Comments
 (0)