Merge pull request #529 from ruilisi/fix/data-verification

fix: preserve data verification on paste + update sheet on verification dropdown value change
This commit is contained in:
Sanchit Agarwal 2024-05-06 15:12:03 +05:30 committed by GitHub
commit 0bc2c6cc98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -1441,7 +1441,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 (

View File

@ -13,6 +13,7 @@ import {
isdatetime,
isRealNull,
isRealNum,
jfrefreshgrid,
mergeBorder,
rowLocationByIndex,
setCellValue,
@ -788,6 +789,7 @@ export function setDropcownValue(ctx: Context, value: string, arr: any) {
ctx.dataVerificationDropDownList = false;
}
setCellValue(ctx, rowIndex, colIndex, d, value);
jfrefreshgrid(ctx, null, undefined);
}
// 输入数据验证