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 method to Input component #1475

Closed
jonmajorc opened this issue Mar 17, 2017 · 1 comment
Closed

Add focus method to Input component #1475

jonmajorc opened this issue Mar 17, 2017 · 1 comment

Comments

@jonmajorc
Copy link
Contributor

When Input component is used with DatePicker it is expected to return a DOM node which has a focus method. @levithomason had mention The ref is a reference to the Input class instance and we need to add a focus method to the Input component. This is also considered best practice.

Uncaught TypeError: this.refs.input.focus is not a function
    at Object.focus (bundle.js:86206)
    at Object.setFocus (bundle.js:86206)
    at bundle.js:86206
    at bundle.js:86212
@levithomason
Copy link
Member

Fixed in #1477

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

No branches or pull requests

2 participants