We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c3d765 + 0637d5b commit 2ac1820Copy full SHA for 2ac1820
src/utils/applyChangeToValue.js
@@ -13,11 +13,11 @@ const applyChangeToValue = (
13
let oldPlainTextValue = getPlainText(value, config)
14
15
let lengthDelta = oldPlainTextValue.length - plainTextValue.length
16
- if (selectionStartBefore === 'undefined') {
+ if (selectionStartBefore === null) {
17
selectionStartBefore = selectionEndAfter + lengthDelta
18
}
19
20
- if (selectionEndBefore === 'undefined') {
+ if (selectionEndBefore === null) {
21
selectionEndBefore = selectionStartBefore
22
23
0 commit comments