@codemirror/view 0.19.33 → 0.19.34

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.19.34 (2021-12-17)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug where content line elements would in some cases lose their `cm-line` class. Move test to scrollIntoView
6
+
1
7
  ## 0.19.33 (2021-12-16)
2
8
 
3
9
  ### Breaking changes
package/dist/index.cjs CHANGED
@@ -1331,6 +1331,7 @@ class LineView extends ContentView {
1331
1331
  }
1332
1332
  else if (this.dirty & 4 /* Attrs */) {
1333
1333
  clearAttributes(this.dom);
1334
+ this.dom.className = "cm-line";
1334
1335
  this.prevAttrs = this.attrs ? null : undefined;
1335
1336
  }
1336
1337
  if (this.prevAttrs !== undefined) {
package/dist/index.js CHANGED
@@ -1327,6 +1327,7 @@ class LineView extends ContentView {
1327
1327
  }
1328
1328
  else if (this.dirty & 4 /* Attrs */) {
1329
1329
  clearAttributes(this.dom);
1330
+ this.dom.className = "cm-line";
1330
1331
  this.prevAttrs = this.attrs ? null : undefined;
1331
1332
  }
1332
1333
  if (this.prevAttrs !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "0.19.33",
3
+ "version": "0.19.34",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",