Skip to content

Commit

Permalink
Fix issue with clamping the replaced value
Browse files Browse the repository at this point in the history
  • Loading branch information
owenmoogk committed Nov 5, 2024
1 parent 40a178a commit 0122d76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export const NumberInput = factory<NumberInputFactory>((_props, ref) => {
const parsedValue = parseFloat(replaced);
setValue(
Number.isNaN(parsedValue) || parsedValue > Number.MAX_SAFE_INTEGER
? clamp(replaced, min, max)
? replaced
: clamp(parsedValue, min, max)
);
}
Expand Down

0 comments on commit 0122d76

Please sign in to comment.