You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.
Steps for Reproduction
constquill=render(<Editor/>awaituserEvent.type(document.querySelector('.ql-editor'),'foo');// after a delayawaitnewPromise(res=>setTimeout(res,2000));quill.deleteText(2,0,'user');awaituserEvent.type(document.querySelector('.ql-editor'),'abc');expect(document.body).toHaveTextContent('foo');//but the editor is empty
Expected behavior: To have text content "foo"
Actual behavior: But the text is empty
Platforms: Mac
Version: 2.0.3
In history.ts, we return if the delta is empty.
But the timestamp is still recorded. This makes the next record replace the previous stack.
Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.
Steps for Reproduction
Expected behavior: To have text content "foo"
Actual behavior: But the text is empty
Platforms: Mac
Version: 2.0.3
In history.ts, we return if the delta is empty.
But the timestamp is still recorded. This makes the next record replace the previous stack.
quill/packages/quill/src/modules/history.ts
Lines 126 to 132 in ebe16ca
Moving this line
quill/packages/quill/src/modules/history.ts
Line 130 in ebe16ca
above the if condition should fix it.
quill/packages/quill/src/modules/history.ts
Lines 116 to 118 in ebe16ca
The text was updated successfully, but these errors were encountered: