Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(table): calibration invalid for value=0 (#2352)
Browse files Browse the repository at this point in the history
chaishi authored and NWYLZW committed Jan 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b975a2f commit e46797b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input-number/useInputNumber.tsx
Original file line number Diff line number Diff line change
@@ -160,7 +160,7 @@ export default function useInputNumber<T extends InputNumberValue = InputNumberV
};

const handleBlur = (value: string, ctx: { e: React.FocusEvent<HTMLDivElement, Element> }) => {
if (!props.allowInputOverLimit && value) {
if (!props.allowInputOverLimit && value !== undefined) {
const r = getMaxOrMinValidateResult({
value: tValue,
largeNumber,

0 comments on commit e46797b

Please sign in to comment.