Explorar o código

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

Maciej Gołaszewski %!s(int64=5) %!d(string=hai) anos
pai
achega
b27e79b761
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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;
 	}
 
 	/**