瀏覽代碼

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;
 	}
 
 	/**