Explorar el Código

fix(table): fix the table: cancel editing and not restore the initial value #235

vben hace 4 años
padre
commit
1d0ec3629f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/demo/table/EditRowTable.vue

+ 1 - 1
src/views/demo/table/EditRowTable.vue

@@ -140,7 +140,7 @@
 
       function handleCancel(record: EditRecordRow) {
         currentEditKeyRef.value = '';
-        record.onEdit?.(false, true);
+        record.onEdit?.(false, false);
       }
 
       async function handleSave(record: EditRecordRow) {