@worktile/theia 16.2.7 → 16.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13363,8 +13363,13 @@ class TheTableComponent extends TheBaseElementComponent {
13363
13363
  .subscribe(cells => {
13364
13364
  this.selectedCells = cells;
13365
13365
  this.isSelectedAllCell = isSelectedAllCell(this.editor, this.tableStore.getSelectedCellPositions());
13366
- if (!cells.length && this.tableService.isOpened) {
13367
- this.tableService.closeToolbar();
13366
+ if (!cells.length) {
13367
+ if (this.tablePluginOptions.deselect && typeof this.tablePluginOptions.deselect === 'function') {
13368
+ this.tablePluginOptions.deselect(this.editor);
13369
+ }
13370
+ if (this.tableService.isOpened) {
13371
+ this.tableService.closeToolbar();
13372
+ }
13368
13373
  }
13369
13374
  });
13370
13375
  }