forked from vikunja/frontend
fix(editor): focus the editor when clicking on the whole edit container
This commit is contained in:
parent
5a25685d53
commit
c5ba7fcb73
|
@ -64,6 +64,7 @@
|
|||
class="tiptap__editor"
|
||||
:class="{'tiptap__editor-is-edit-enabled': isEditing}"
|
||||
:editor="editor"
|
||||
@click="focusIfEditing()"
|
||||
/>
|
||||
|
||||
<input
|
||||
|
@ -581,6 +582,12 @@ function setFocusToEditor(event) {
|
|||
editor.value?.commands.focus()
|
||||
}
|
||||
|
||||
function focusIfEditing() {
|
||||
if (isEditing.value) {
|
||||
editor.value?.commands.focus()
|
||||
}
|
||||
}
|
||||
|
||||
function clickTasklistCheckbox(event) {
|
||||
event.stopImmediatePropagation()
|
||||
|
||||
|
|
Loading…
Reference in New Issue