some fixes

This commit is contained in:
Philipp Kühn
2020-04-21 23:48:50 +02:00
parent 91d4aa7e39
commit 023c16a4f5
6 changed files with 7 additions and 8 deletions

View File

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