mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-18 05:20:43 +01:00
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:
parent
d9452e26a8
commit
a0dc10acb8
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue