Skip to content

Commit

Permalink
fix: 🐛 fix the editor doesn't change when it's v-model variable chang…
Browse files Browse the repository at this point in the history
…es (fix #35)
  • Loading branch information
luthfimasruri committed Jun 4, 2021
1 parent 3b88188 commit b30e954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-quill/src/components/QuillEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ export const QuillEditor = defineComponent({

watch(
() => props.content,
(newContent) => {
if (!quill || !newContent || newContent === props.content) return
(newContent, oldContents) => {
if (!quill || !newContent || newContent === oldContents) return
setContents(newContent)
}
)
Expand Down

0 comments on commit b30e954

Please sign in to comment.