Skip to content

Commit

Permalink
fix: stable input during typing in InputNumberField
Browse files Browse the repository at this point in the history
  • Loading branch information
kilya11 authored Apr 12, 2024
1 parent 1797ef4 commit b880171
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 b880171

Please sign in to comment.