@mdxeditor/editor 0.17.0 → 0.17.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.
@@ -108,7 +108,12 @@ class TableNode extends DecoratorNode {
108
108
  table.children.splice(y, 0, newRow);
109
109
  }
110
110
  deleteRowAt(rowIndex) {
111
- this.getWritable().__mdastNode.children.splice(rowIndex, 1);
111
+ if (this.getRowCount() === 1) {
112
+ this.selectNext();
113
+ this.remove();
114
+ } else {
115
+ this.getWritable().__mdastNode.children.splice(rowIndex, 1);
116
+ }
112
117
  }
113
118
  addRowToBottom() {
114
119
  this.insertRowAt(this.getRowCount());
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "private": false,
10
10
  "sideEffects": false,
11
11
  "type": "module",
12
- "version": "0.17.0",
12
+ "version": "0.17.1",
13
13
  "description": "React component for rich text markdown editing",
14
14
  "scripts": {
15
15
  "build": "vite build",