Merge pull request #19 from ueberdosis/fix/autofocus

Fix the broken autoFocus option
This commit is contained in:
Philipp Kühn
2020-10-02 21:58:02 +02:00
committed by GitHub
4 changed files with 5 additions and 9 deletions

View File

@@ -122,7 +122,7 @@ export class Editor extends EventEmitter {
this.registerCommands(coreCommands)
this.injectCSS()
this.proxy.focus(this.options.autoFocus)
window.setTimeout(() => this.proxy.focus(this.options.autoFocus), 0)
}
/**