prosemirror-view
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
## 1.17.3 (2021-01-29) | ||
### Bug fixes | ||
Fix a bug where adding invalid decorations (for example zero-length inline decorations) with `DecorationSet.add` would fail to drop those. | ||
## 1.17.2 (2021-01-12) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-view", | ||
"version": "1.17.2", | ||
"version": "1.17.3", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -316,2 +316,6 @@ function compareObjs(a, b) { | ||
}) | ||
for (let i = 0; i < decorations.length; i++) { | ||
let deco = decorations[i] | ||
if (deco && !deco.type.valid(doc, deco)) { decorations[i] = null; childIndex = 1 } | ||
} | ||
@@ -318,0 +322,0 @@ let local = moveSpans(childIndex ? withoutNulls(decorations) : decorations, -offset) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1498772
0.11%14012
0.09%