This commit is contained in:
sadick254
2020-10-20 08:08:01 +03:00
committed by Sadick
parent 320c8796fc
commit b175f31cf7

View File

@@ -1673,7 +1673,7 @@ module.exports = class TextEditorComponent {
this.scheduleUpdate();
}
this.getHiddenInput().focus({preventScroll:true});
this.getHiddenInput().focus({ preventScroll: true });
}
// Called by TextEditorElement so that this function is always the first
@@ -1926,7 +1926,7 @@ module.exports = class TextEditorComponent {
// Disabling the hidden input makes it lose focus as well, so we have to
// re-enable and re-focus it.
this.getHiddenInput().disabled = false;
this.getHiddenInput().focus({preventScroll:true});
this.getHiddenInput().focus({ preventScroll: true });
});
return;
}