Skip to content

Conversation

@denghuacc
Copy link

@vercel
Copy link

vercel bot commented Mar 24, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/input-number/6y6NWjgkZ5vxaE8LwVRLUARADG53
✅ Preview: https://input-number-git-fork-haledc-hotfix-unable-to-empty-va-f6ec13.vercel.app

@codecov
Copy link

codecov bot commented Mar 24, 2021

Codecov Report

Merging #309 (1b1c0f1) into master (163d16f) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #309      +/-   ##
==========================================
+ Coverage   97.24%   97.25%   +0.01%     
==========================================
  Files           8        8              
  Lines         399      401       +2     
  Branches      107      106       -1     
==========================================
+ Hits          388      390       +2     
  Misses         11       11              
Impacted Files Coverage Δ
src/utils/MiniDecimal.ts 95.20% <100.00%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 163d16f...1b1c0f1. Read the comment docs.

});

it('should empty value after removing value', () => {
const wrapper = mount(<InputNumber precision={2} />);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加一个 onChange 事件测试,清空时验证值为 null

@zombieJ zombieJ merged commit a728b34 into react-component:master Mar 27, 2021
@zombieJ
Copy link
Member

zombieJ commented Mar 27, 2021

+ rc-input-number@7.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants