Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
09f1fd9ed4
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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.