1
0
Fork 0
mirror of synced 2024-10-03 10:36:59 +13:00

Ensure rows are cleaned before being passed to button actions in grids

This commit is contained in:
Andrew Kingston 2023-11-07 14:12:06 +00:00
parent c25b8a1448
commit 8017dd592b

View file

@ -29,7 +29,7 @@
$: left = Math.min($width - $buttonColumnWidth, end)
const handleClick = async (button, row) => {
await button.onClick?.(row)
await button.onClick?.(rows.actions.cleanRow(row))
// Refresh the row in case it changed
await rows.actions.refreshRow(row._id)
}