Browse Source

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 years ago
parent
commit
09f1fd9ed4
1 changed files with 2 additions and 0 deletions
  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;
 		column += parseInt( tableCell.getAttribute( 'colspan' ) || 1 );
 	}
+
+	return cellToFocus;
 }
 
 // Returns the index of column that should be focused after rows are removed.