Skip to content

Commit

Permalink
fix(Input): resolve value=0 is valid when type is number
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Jun 19, 2023
1 parent 5caf7f8 commit 5ca3bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const getCharacterLength = (type: string, str: string, max?: number) => {
if (!str || str.length === 0) {
return {
length: 0,
characters: '',
characters: str,
};
}

Expand Down

0 comments on commit 5ca3bf8

Please sign in to comment.