# BeforeEditCloseDetail

> _Since v1.21.2_

Detail payload for the `before-edit-close` event.

Fired **synchronously** just before the grid clears editing state and
destroys editor DOM. At this point the commit callback is still active,
so framework adapter editors (Angular/React/Vue) can flush pending values
via their `commit()` callback.

Only fires on the **commit** path (not on revert/cancel) and only in
`mode: 'row'` — never in `mode: 'grid'`.

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `rowIndex` | <code>number</code> | Index of the row about to leave edit mode. |
| `rowId` | <code>string</code> | Stable row identifier (from getRowId). |
| `row` | <code>TRow</code> | Row object reference (current state — mutations are still accepted). |
