fix safari does not focus to document frame on startup

To reproduce the issue on safari or a webkit browser:
Open a document and just start typing
and the typing does not appear even though cursor is blinking
on the document.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
This commit is contained in:
Mert Tumer 2022-08-09 11:14:21 +03:00
parent d9452e26a8
commit a0dc10acb8

View file

@ -197,6 +197,7 @@ const documentsMain = {
$('#revViewer').append(form)
$('#revViewer').append(frame)
$('#loleafletframe_viewer').focus()
// submit that
$('#loleafletform_viewer').submit()
@ -254,6 +255,7 @@ const documentsMain = {
$('#mainContainer').append(form)
$('#mainContainer').append(frame)
$('#loleafletframe').focus()
emit('richdocuments:wopi-load:started', {
wopiFileId: fileId,