Skip to content

Commit

Permalink
fix(table): row-edit event not trigger (#2934)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaishi authored and uyarn committed Dec 15, 2023
1 parent 1c8335f commit 9240bf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/table/primary-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export default defineComponent({

const onEditableCellChange: EditableCellProps['onChange'] = (params) => {
props.onRowEdit?.(params);
context.emit('row-edit', params);
const rowValue = get(params.editedRow, props.rowKey || 'id');
onUpdateEditedCell(rowValue, params.row, {
[params.col.colKey]: params.value,
Expand Down

0 comments on commit 9240bf5

Please sign in to comment.