Skip to content

Commit

Permalink
refactor: inline onInit handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Mar 22, 2024
1 parent 0a28d58 commit fbf5be2
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -125,14 +125,10 @@ useCodemirror(
linter: null,
completer: null,
environmentHighlights: false,
onInit: onInitView,
onInit: (view: EditorView) => view.focus(),
})
)
function onInitView(view: EditorView) {
view.focus()
}
watch(
() => props.show,
() => {
Expand Down

0 comments on commit fbf5be2

Please sign in to comment.