@portabletext/editor 1.44.10 → 1.44.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2377,7 +2377,7 @@ function _updateBlock(slateEditor, currentBlock, oldBlock, currentBlockIndex) {
2377
2377
  at: path
2378
2378
  });
2379
2379
  const isSpanNode = Text.isText(currentBlockChild) && currentBlockChild._type === "span" && Text.isText(oldBlockChild) && oldBlockChild._type === "span";
2380
- isSpanNode && isTextChanged ? (Transforms.delete(slateEditor, {
2380
+ isSpanNode && isTextChanged ? (oldBlockChild.text.length > 0 && Transforms.delete(slateEditor, {
2381
2381
  at: {
2382
2382
  focus: {
2383
2383
  path,