@isoftdata/svelte-table 2.6.2 → 2.6.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.
@@ -198,6 +198,7 @@
198
198
  {@const reorderable = computeReorderability ? computeReorderability(row) : typeof row[rankProperty] === 'number'}
199
199
  <tr
200
200
  id="row-{row.id}"
201
+ data-original-index={row.originalIndex}
201
202
  class={[classNames, computeClass(row)]}
202
203
  class:hovered-row-asc={table?.sortDirection === 'ASC' && hoveredRowIndex === row.originalIndex}
203
204
  class:hovered-row-desc={table?.sortDirection === 'DESC' && hoveredRowIndex === row.originalIndex}
package/dist/Td.svelte CHANGED
@@ -118,7 +118,7 @@
118
118
  {#if stopPropagation || enterGoesDown}
119
119
  <!-- svelte-ignore a11y_no_static_element_interactions -->
120
120
  <span
121
- onclick={e => e.stopPropagation()}
121
+ onclick={stopPropagation ? e => e.stopPropagation() : undefined}
122
122
  {onkeypress}
123
123
  >
124
124
  {@render children?.()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-table",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",