Skip to content

Commit

Permalink
fix(sheets-data-validation): fix reject input incorrect (#2082)
Browse files Browse the repository at this point in the history
* fix: data-validation reject input issue

* feat: lock

* feat: lock

---------

Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
  • Loading branch information
weird94 and wzhudev authored Apr 26, 2024
1 parent 937fa13 commit 6e03118
Show file tree
Hide file tree
Showing 2 changed files with 4,291 additions and 2,448 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ export class DataValidationRejectInputController extends Disposable {
return next(Promise.resolve(cell));
}

const cellRaw = context.worksheet.getCellRaw(context.row, context.col);
const success = await validator.validator(
{
value: getCellValueOrigin(cellRaw),
value: getCellValueOrigin(cell),
row,
column: col,
unitId,
Expand Down
Loading

0 comments on commit 6e03118

Please sign in to comment.