Skip to content

Commit

Permalink
fix: stable input during typing in InputNumberField (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilya11 authored Apr 15, 2024
1 parent 1797ef4 commit aa7a347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/InputNumberField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function InputNumberField<
disabled={disabled}
controls={false}
formatter={(value, { userTyping, input }) => {
if (userTyping) {
if (userTyping && input !== '') {
return input;
}

Expand Down

0 comments on commit aa7a347

Please sign in to comment.