False positive "You are passing the delta object from the onChange event back as value"
See original GitHub issueIn my case, when both nextContents and this.lastDeltaChangeSet are undefined, I get this error. It happens in a real scenario when I switch between 2 records, and component.js componentWillReceiveProps gets called
From component.js:
if (nextContents === this.lastDeltaChangeSet) {
console.error(nextContents, this.lastDeltaChangeSet)
throw new Error(
'You are passing the `delta` object from the `onChange` event back ' +
'as `value`. You most probably want `editor.getContents()` instead. ' +
'See: https://github.com/zenoamaro/react-quill#using-deltas'
)
}
React-Quill version
1.3.3
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6
Top Results From Across the Web
How to get rid of ReactQuill Unhandled Runtime Error?
Screenshot of Error Unhandled Runtime Error Error: You are passing the delta object from the onchange event back as value.
Read more >react-quill - npm
Do not use the delta object you receive from the onChange event as value . This object does not contain the full document,...
Read more >Numbers and dates - JavaScript - MDN Web Docs - Mozilla
This chapter introduces the concepts, objects and functions used to work with and perform calculations using numbers and dates in JavaScript.
Read more >Assertions | Cypress Documentation
Cypress bundles the popular Chai assertion library, as well as helpful extensions for Sinon and jQuery, bringing you dozens of powerful assertions for....
Read more >Machine Learning Glossary - Google Developers
FP is the number of false positives (incorrect predictions). ... AUC ignores any value you set for classification threshold.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
<Form.Item initialValue='' name='content' label='内容' rules={[{required: true}]}> <ReactQuill ref={quillRef} theme="snow" value='' modules={_qModules}/> </Form.Item>
You need to set an initial valueHad the same issue, as a workaround I initialize the passed value as an empty String:
A
value={quillContent || ""}
also should work if you’re lazy.