fix focus bug

This commit is contained in:
Philipp Kühn
2020-03-06 11:46:35 +01:00
parent adb2d1a12c
commit e94415aa67

View File

@@ -46,7 +46,7 @@ function resolveSelection(editor: Editor, position: Position = null): ResolvedSe
export default async function focus(next: Function, editor: Editor, position: Position = null): Promise<void> {
const { view, state } = editor
if ((view.hasFocus && position === null)) {
if ((view.hasFocus() && position === null)) {
next()
return
}