Skip to content

Commit

Permalink
Removed setting focus to the editor iframe in the mobile version. Now…
Browse files Browse the repository at this point in the history
… the editor itself will take the focus as it should.
  • Loading branch information
K0R0L committed Nov 25, 2024
1 parent 45bf888 commit d26e1ba
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions apps/api/documents/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,19 +400,6 @@
};

var _onAppReady = function() {
if (_config.type === 'mobile') {
document.body.onfocus = function(e) {
setTimeout(function(){
iframe.contentWindow.focus();

_sendCommand({
command: 'resetFocus',
data: {}
})
}, 10);
};
}

_attachMouseEvents();

if (_config.editorConfig) {
Expand Down

0 comments on commit d26e1ba

Please sign in to comment.