1
0

Rename discardShortcutEnabled to enableDiscardShortcut

This commit is contained in:
Elscrux 2024-05-23 10:21:45 +02:00
parent c13a991c16
commit ebb093797c

View File

@ -203,7 +203,7 @@ const {
showSave = false, showSave = false,
placeholder = '', placeholder = '',
editShortcut = '', editShortcut = '',
discardShortcutEnabled = false, enableDiscardShortcut = false,
} = defineProps<{ } = defineProps<{
modelValue: string, modelValue: string,
uploadCallback?: UploadCallback, uploadCallback?: UploadCallback,
@ -212,7 +212,7 @@ const {
showSave?: boolean, showSave?: boolean,
placeholder?: string, placeholder?: string,
editShortcut?: string, editShortcut?: string,
discardShortcutEnabled?: boolean, enableDiscardShortcut?: boolean,
}>() }>()
const emit = defineEmits(['update:modelValue', 'save']) const emit = defineEmits(['update:modelValue', 'save'])
@ -427,7 +427,7 @@ const extensions : Extensions = [
] ]
// Add a custom extension for the Escape key // Add a custom extension for the Escape key
if (discardShortcutEnabled) { if (enableDiscardShortcut) {
extensions.push(Extension.create({ extensions.push(Extension.create({
name: 'escapeKey', name: 'escapeKey',