Skip to content

Commit b30e954

Browse files
committed
fix: 🐛 fix the editor doesn't change when it's v-model variable changes (fix #35)
1 parent 3b88188 commit b30e954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-quill/src/components/QuillEditor.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ export const QuillEditor = defineComponent({
304304

305305
watch(
306306
() => props.content,
307-
(newContent) => {
308-
if (!quill || !newContent || newContent === props.content) return
307+
(newContent, oldContents) => {
308+
if (!quill || !newContent || newContent === oldContents) return
309309
setContents(newContent)
310310
}
311311
)

0 commit comments

Comments
 (0)