Skip to content
Permalink
Browse files

Restore call to dom.focus on view.focus

  • Loading branch information...
marijnh committed Aug 8, 2019
1 parent 021acb3 commit 24e0ab1f6e445a421e444ca89d2241d7e7faecae
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/index.js
@@ -226,6 +226,10 @@ export class EditorView {
focus() {
this.domObserver.stop()
selectionToDOM(this, true)
if (this.editable) {
if (this.dom.setActive) this.dom.setActive() // for IE
else this.dom.focus({preventScroll: true})
}
this.domObserver.start()
}

0 comments on commit 24e0ab1

Please sign in to comment.
You can’t perform that action at this time.