Skip to content

Commit

Permalink
fix: attributes missing reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Feb 2, 2023
1 parent 0eb9ca1 commit f96121b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vue-quill/src/components/QuillEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ export const QuillEditor = defineComponent({
}

const deltaHasValuesOtherThanRetain = (delta: Delta): boolean => {
return Object.values(delta.ops).some((v) => !v.retain)
return Object.values(delta.ops).some(
(v) => !v.retain || Object.keys(v).length !== 1
)
}

// Doesn't need reactivity, but does need to be cloned to avoid deep mutations always registering as equal
Expand Down

0 comments on commit f96121b

Please sign in to comment.