Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add focus and blur support to InputNumber #7615

Merged
merged 3 commits into from Sep 15, 2017

Conversation

delesseps
Copy link
Contributor

Useful for focusing the first field in a form which in this case may be an InputNumber

<InputNumber ref={(input) => this.amountInput = input} />

then inside lifecycle method like componentDidUpdate

this.amountInput.focus()

Brings into line with Input.focus

Related to PR 7577 against Master

@codecov
Copy link

codecov bot commented Sep 15, 2017

Codecov Report

Merging #7615 into antd-3.0 will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           antd-3.0    #7615      +/-   ##
============================================
- Coverage     82.14%   82.06%   -0.08%     
============================================
  Files           214      214              
  Lines          4441     4445       +4     
  Branches       1337     1337              
============================================
  Hits           3648     3648              
- Misses          793      797       +4
Impacted Files Coverage Δ
components/input-number/index.tsx 70.58% <ø> (-21.72%) ⬇️

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 ea5ccce...b1591d7. Read the comment docs.

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.

None yet

2 participants