Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"classnames": "^2.2.5",
"rc-util": "^5.9.8"
"classnames": "^2.3.1",
"rc-util": "^5.10.1"
},
"devDependencies": {
"@types/classnames": "^2.2.9",
"@types/enzyme": "^3.10.8",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.2",
"@types/react": "^16.14.5",
"@types/react-dom": "^16.9.0",
"@umijs/fabric": "^2.0.0",
"cross-env": "^7.0.0",
Expand Down
3 changes: 1 addition & 2 deletions src/InputNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ const InputNumber = React.forwardRef(

// Update inputValue incase input can not parse as number
setInternalInputValue(inputStr);

if (inputStr === '') triggerValueUpdate(getMiniDecimal(mergedParser(inputStr)), true);
// Parse number
if (!compositionRef.current) {
const finalValue = mergedParser(inputStr);
Expand All @@ -338,7 +338,6 @@ const InputNumber = React.forwardRef(
// >>> Input
const onInternalInput: React.ChangeEventHandler<HTMLInputElement> = (e) => {
let inputStr = e.target.value;

// optimize for chinese input experience
// https://github.com/ant-design/ant-design/issues/8196
if (!parser) {
Expand Down