diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 9b0a990f3..1281fa5a5 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -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; }