mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-27 15:45:32 +00:00
fix(editor): make bubbling changes from outside work
This partially reverts a change introduced in ca1384e3c9 which led to a bug where a comment on a task, which was just saved, stayed in the editor. The editor switched to read-only mode after that.
This commit is contained in:
@@ -184,13 +184,13 @@ import {setLinkInEditor} from '@/components/input/editor/setLinkInEditor'
|
||||
const {
|
||||
modelValue,
|
||||
uploadCallback,
|
||||
isEditEnabled,
|
||||
bottomActions,
|
||||
showSave,
|
||||
placeholder,
|
||||
editShortcut,
|
||||
enableDiscardShortcut,
|
||||
} = withDefaults(defineProps<{
|
||||
isEditEnabled = true,
|
||||
bottomActions = [],
|
||||
showSave = false,
|
||||
placeholder = '',
|
||||
editShortcut = '',
|
||||
enableDiscardShortcut = false,
|
||||
} = defineProps<{
|
||||
modelValue: string,
|
||||
uploadCallback?: UploadCallback,
|
||||
isEditEnabled?: boolean,
|
||||
@@ -199,14 +199,7 @@ const {
|
||||
placeholder?: string,
|
||||
editShortcut?: string,
|
||||
enableDiscardShortcut?: boolean,
|
||||
}>(), {
|
||||
isEditEnabled: true,
|
||||
bottomActions: () => [],
|
||||
showSave: false,
|
||||
placeholder: '',
|
||||
editShortcut: '',
|
||||
enableDiscardShortcut: false,
|
||||
})
|
||||
}>()
|
||||
|
||||
const emit = defineEmits(['update:modelValue', 'save'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user