Skip to content

Commit

Permalink
fix(editor): boolean values do not need to be processed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gggpound committed Aug 27, 2024
1 parent 67f25c8 commit 98e4121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ export function getCellDataByInput(
cellData.si = null;
cellData.p = null;
cellData.t = CellValueType.FORCE_STRING;
} else if (numfmt.parseValue(newDataStream)) {
} else if (numfmt.parseDate(newDataStream) || numfmt.parseNumber(newDataStream) || numfmt.parseTime(newDataStream)) {
// If it can be converted to a number and is not forced to be a string, then the style should keep prev style.
cellData.v = newDataStream;
cellData.f = null;
Expand Down

0 comments on commit 98e4121

Please sign in to comment.