mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-08 00:39:50 +00:00
Update event binding in CKEditor5 component template
Replaces the deprecated `@input` event with the `@update:modelValue` event to ensure compatibility with Vue 3. This improves handling of two-way binding for the `v-model` directive.
This commit is contained in:
parent
992e6d29d0
commit
66bd63403b
@ -15,7 +15,7 @@ ckeditorFields.forEach((field: HTMLTextAreaElement): void => {
|
|||||||
|
|
||||||
createApp({
|
createApp({
|
||||||
components: { CommentEditor },
|
components: { CommentEditor },
|
||||||
template: `<comment-editor v-model="content" @input="handleInput"></comment-editor>`,
|
template: `<comment-editor v-model="content" @update:modelValue="handleInput"></comment-editor>`,
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
content,
|
content,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user