prosemirror-view 1.23.0 → 1.23.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-view",
3
- "version": "1.23.0",
3
+ "version": "1.23.1",
4
4
  "description": "ProseMirror's view component",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/viewdesc.js CHANGED
@@ -1161,7 +1161,7 @@ class ViewTreeUpdater {
1161
1161
  }
1162
1162
  }
1163
1163
  } else {
1164
- for (let i = this.index, e = Math.min(children.length, i + 1); i < e; i++) {
1164
+ for (let i = this.index, e = Math.min(children.length, i + 5); i < e; i++) {
1165
1165
  let child = children[i]
1166
1166
  if (child.matchesNode(node, outerDeco, innerDeco) && !this.preMatch.matched.has(child)) {
1167
1167
  found = i