diff --git a/services/web/frontend/js/features/file-view/components/file-view-header.tsx b/services/web/frontend/js/features/file-view/components/file-view-header.tsx index f6a9143661..1aeb7b82f8 100644 --- a/services/web/frontend/js/features/file-view/components/file-view-header.tsx +++ b/services/web/frontend/js/features/file-view/components/file-view-header.tsx @@ -103,6 +103,18 @@ export default function FileViewHeader({ file }: FileViewHeaderProps) { {refreshError && ( )} + + {/* Workaround for Safari issue: https://github.com/overleaf/internal/issues/21363 + * The editor behind a file view receives key events and updates the file even if Codemirror view is not focused. + * Changing the focus to a hidden textarea prevents this + */} +