Closed
Description
Version
1.1.0
Describe the bug
Mounting <QuillEditor>
with null
content causes the following error:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'slice')
This is a breaking changed introduced in #317 - https://github.com/vueup/vue-quill/pull/317/files#diff-0fe7a2c7e46d97a72a1fdc2df750c7b1a775050558328b4985c0095fef057cfaR189
typeof delta === 'object'
is an insufficient check as null
is also an object.
To Reproduce
Mount a QuillEditor
component with null
content:
<QuillEditor
:content="null"
/>
Expected behavior
The component can be mounted without error.
Browser (please complete the following information):
Arc Version 0.89.0 (37129)
Chromium Engine Version 110.0.5481.90