浏览代码

Internal: Fixed a case where editor would crash when removing a row with selection in the last cell (of a row that had to be removed).

Marek Lewandowski 5 年之前
父节点
当前提交
09f1fd9ed4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/ckeditor5-table/src/commands/removerowcommand.js

+ 2 - 0
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -161,6 +161,8 @@ function getCellToFocus( table, removedRowIndex, columnToFocus ) {
 		cellToFocus = tableCell;
 		cellToFocus = tableCell;
 		column += parseInt( tableCell.getAttribute( 'colspan' ) || 1 );
 		column += parseInt( tableCell.getAttribute( 'colspan' ) || 1 );
 	}
 	}
+
+	return cellToFocus;
 }
 }
 
 
 // Returns the index of column that should be focused after rows are removed.
 // Returns the index of column that should be focused after rows are removed.