Skip to content

Commit

Permalink
preserve data verification on paste
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchit-agarwal committed Apr 4, 2024
1 parent 1983114 commit ac24e5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/events/paste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,10 @@ function pasteHandlerOfCopyPaste(
// ) {
// return;
// }
console.log(

Check warning on line 1080 in packages/core/src/events/paste.ts

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)!]
?.dataVerification
);
const allowEdit = isAllowEdit(ctx);
if (!allowEdit) return;

Expand Down Expand Up @@ -1438,7 +1442,7 @@ function pasteHandlerOfCopyPaste(
const file = ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)!];
file.config = cfg;
file.luckysheet_conditionformat_save = cdformat;
file.dataVerification = dataVerification;
file.dataVerification = { ...file.dataVerification, ...dataVerification };

// 若选区内包含超链接
if (
Expand Down

0 comments on commit ac24e5a

Please sign in to comment.