Skip to content

Commit f96121b

Browse files
committed
fix: attributes missing reactivity
1 parent 0eb9ca1 commit f96121b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ export const QuillEditor = defineComponent({
190190
}
191191

192192
const deltaHasValuesOtherThanRetain = (delta: Delta): boolean => {
193-
return Object.values(delta.ops).some((v) => !v.retain)
193+
return Object.values(delta.ops).some(
194+
(v) => !v.retain || Object.keys(v).length !== 1
195+
)
194196
}
195197

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

0 commit comments

Comments
 (0)