mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-07 01:19:57 +00:00
fix: provide callback for focus-editor injection (#435)
This commit is contained in:
parent
39ed6bffec
commit
1cd86996ab
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ const props = defineProps<{
|
|||
command?: boolean
|
||||
}>()
|
||||
|
||||
const focusEditor = inject<() => void>('focus-editor')
|
||||
const focusEditor = inject<typeof noop>('focus-editor', noop)
|
||||
|
||||
const { details, command } = $(props)
|
||||
|
||||
|
@ -23,7 +23,7 @@ const reply = () => {
|
|||
if (!checkLogin())
|
||||
return
|
||||
if (details) {
|
||||
focusEditor?.()
|
||||
focusEditor()
|
||||
}
|
||||
else {
|
||||
const { key, draft } = getReplyDraft(status)
|
||||
|
|
Loading…
Reference in a new issue