feat: focus editor on reply click (#434)
This commit is contained in:
parent
e4b7b8061a
commit
39ed6bffec
3 changed files with 17 additions and 1 deletions
|
@ -7,6 +7,8 @@ const props = defineProps<{
|
|||
command?: boolean
|
||||
}>()
|
||||
|
||||
const focusEditor = inject<() => void>('focus-editor')
|
||||
|
||||
const { details, command } = $(props)
|
||||
|
||||
const {
|
||||
|
@ -21,7 +23,7 @@ const reply = () => {
|
|||
if (!checkLogin())
|
||||
return
|
||||
if (details) {
|
||||
// TODO focus to editor
|
||||
focusEditor?.()
|
||||
}
|
||||
else {
|
||||
const { key, draft } = getReplyDraft(status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue