Skip to content

Commit

Permalink
fix(table): fix the table: cancel editing and not restore the initial…
Browse files Browse the repository at this point in the history
… value #235
  • Loading branch information
anncwb committed Feb 3, 2021
1 parent 3d1681e commit 1d0ec36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/demo/table/EditRowTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
function handleCancel(record: EditRecordRow) {
currentEditKeyRef.value = '';
record.onEdit?.(false, true);
record.onEdit?.(false, false);
}
async function handleSave(record: EditRecordRow) {
Expand Down

1 comment on commit 1d0ec36

@YueSeSuiFeng
Copy link

@YueSeSuiFeng YueSeSuiFeng commented on 1d0ec36 Sep 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没效果啊,取消编辑后虽然界面显示恢复原来的但是使用getDataSource()获取到的表格数据还是修改后的值啊

Please sign in to comment.