Commit 1d0ec3629f9cdd40c16b62ce61f9230dcd56a82f
1 parent
3d1681ee
fix(table): fix the table: cancel editing and not restore the initial value #235
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/demo/table/EditRowTable.vue
@@ -140,7 +140,7 @@ | @@ -140,7 +140,7 @@ | ||
140 | 140 | ||
141 | function handleCancel(record: EditRecordRow) { | 141 | function handleCancel(record: EditRecordRow) { |
142 | currentEditKeyRef.value = ''; | 142 | currentEditKeyRef.value = ''; |
143 | - record.onEdit?.(false, true); | 143 | + record.onEdit?.(false, false); |
144 | } | 144 | } |
145 | 145 | ||
146 | async function handleSave(record: EditRecordRow) { | 146 | async function handleSave(record: EditRecordRow) { |