Преглед изворни кода

Render table selection when table cells are selected and selection process is stopped.

Maciej Gołaszewski пре 5 година
родитељ
комит
b27e79b761
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      packages/ckeditor5-table/src/tableselection.js

+ 6 - 1
packages/ckeditor5-table/src/tableselection.js

@@ -69,8 +69,13 @@ export default class TableSelection extends Plugin {
 		 */
 	}
 
+	/**
+	 * Flag indicating that there are selected table cells.
+	 *
+	 * @type {Boolean}
+	 */
 	get hasMultiCellSelection() {
-		return this.isSelecting && this._startElement && this._endElement && this._startElement !== this._endElement;
+		return !!this._startElement && !!this._endElement && this._startElement !== this._endElement;
 	}
 
 	/**