@omnigrid/selection-plugin 0.1.13 → 0.1.14

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -429,10 +429,12 @@ export class SelectionPlugin {
429
429
  refresh() {
430
430
  if (!this.api || this.api.isDestroyed())
431
431
  return;
432
- this.api.setState((prev) => ({ ...prev, selection: this.getSelectionState() }));
433
- this.api.refresh();
434
- this.onSelectionChange?.(this.getSelectionState());
435
- this.api.emit("selection:change", this.getSelectionState());
432
+ const api = this.api;
433
+ const selectionState = this.getSelectionState();
434
+ api.setState((prev) => ({ ...prev, selection: selectionState }), { structural: false });
435
+ api.refreshCells([this.selectionColumnId]);
436
+ this.onSelectionChange?.(selectionState);
437
+ api.emit("selection:change", selectionState);
436
438
  }
437
439
  validateSelection() {
438
440
  if (!this.api)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigrid/selection-plugin",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Headless row selection plugin for OmniGrid",
5
5
  "keywords": [
6
6
  "omnigrid",