@invopop/popui 0.1.86 → 0.1.87
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.
|
@@ -160,14 +160,6 @@
|
|
|
160
160
|
}
|
|
161
161
|
})
|
|
162
162
|
|
|
163
|
-
// Track focused row changes (keyboard navigation or row click)
|
|
164
|
-
$effect(() => {
|
|
165
|
-
if (!onRowFocus || focusedRowIndex < 0) return
|
|
166
|
-
const rows = table.getRowModel().rows
|
|
167
|
-
const focusedRow = rows[focusedRowIndex]
|
|
168
|
-
if (focusedRow) onRowFocus(focusedRow.original)
|
|
169
|
-
})
|
|
170
|
-
|
|
171
163
|
// Track column order changes
|
|
172
164
|
$effect(() => {
|
|
173
165
|
if (onColumnOrderChange && columnOrder.length > 0) {
|
|
@@ -255,6 +247,7 @@
|
|
|
255
247
|
enableSelection,
|
|
256
248
|
scrollToFocusedRow
|
|
257
249
|
)
|
|
250
|
+
if (rows[focusedRowIndex]) onRowFocus?.(rows[focusedRowIndex].original)
|
|
258
251
|
break
|
|
259
252
|
case 'ArrowUp':
|
|
260
253
|
event.preventDefault()
|
|
@@ -265,6 +258,7 @@
|
|
|
265
258
|
enableSelection,
|
|
266
259
|
scrollToFocusedRow
|
|
267
260
|
)
|
|
261
|
+
if (rows[focusedRowIndex]) onRowFocus?.(rows[focusedRowIndex].original)
|
|
268
262
|
break
|
|
269
263
|
case ' ':
|
|
270
264
|
event.preventDefault()
|