slate 0.77.0 → 0.77.2

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.
package/dist/index.es.js CHANGED
@@ -1805,7 +1805,10 @@ var Editor = {
1805
1805
  // yield their first point. If the `voids` option is set to true,
1806
1806
  // then we will iterate over their content.
1807
1807
  if (!voids && editor.isVoid(node)) {
1808
- yield Editor.start(editor, path);
1808
+ yield Editor.start(editor, path); // It's possible the start of the range we're iterating over is in a void, in which case
1809
+ // we want to make sure we don't incorrectly yield the start of a subsequent text node for unit !== 'offset'
1810
+
1811
+ isNewBlock = false;
1809
1812
  continue;
1810
1813
  } // Inline element nodes are ignored as they don't themselves
1811
1814
  // contribute to `blockText` or `leafText` - their parent and