feat: focus editor on reply click (#434)

This commit is contained in:
Joaquín Sánchez 2022-12-14 17:45:46 +01:00 committed by GitHub
parent e4b7b8061a
commit 39ed6bffec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View file

@ -151,6 +151,12 @@ async function onDrop(files: File[] | null) {
}
const { isOverDropZone } = useDropZone(dropZoneRef, onDrop)
defineExpose({
focusEditor: () => {
editor.value?.commands?.focus?.()
},
})
</script>
<template>