@moda-grid/vue2 2.2.3 → 2.2.4

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.
package/dist/DataGrid.vue CHANGED
@@ -34,6 +34,7 @@ import {
34
34
  handleGridKeydown,
35
35
  isGroupRow,
36
36
  isInteractiveCellTarget,
37
+ isRowSelectedInSnap,
37
38
  isSubtotalRow,
38
39
  leafDepthOf,
39
40
  filterDropAnchorX,
@@ -957,7 +958,7 @@ function sortPriorityOf(field: string) {
957
958
  }
958
959
 
959
960
  function isSelected(row: Record<string, unknown>) {
960
- return state.value.selectedRowIds.has(grid.getRowId(row));
961
+ return isRowSelectedInSnap(state.value, grid.getRowId(row));
961
962
  }
962
963
 
963
964
  function onColumnToggle(field: string, event: Event) {
@@ -2632,7 +2633,7 @@ watch(
2632
2633
  role="row"
2633
2634
  :data-mg-key="grid.getRowId(rowDataOf(entry))"
2634
2635
  :aria-selected="
2635
- state.selectedRowIds.has(grid.getRowId(rowDataOf(entry)))
2636
+ isRowSelectedInSnap(state, grid.getRowId(rowDataOf(entry)))
2636
2637
  "
2637
2638
  :class="rowClassOf(entry, rowIdx)"
2638
2639
  :style="rowStyleOf(entry, rowIdx)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda-grid/vue2",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "Vue 2.7 adapter for @moda-grid — DataGrid SFC and useGrid composable",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "grid"
37
37
  ],
38
38
  "dependencies": {
39
- "@moda-grid/core": "2.2.3"
39
+ "@moda-grid/core": "2.2.4"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "vue": "^2.7.0"