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

Runtime error when autoFocus applied to FormInput element #221

Open
acampbellb opened this issue Dec 30, 2017 · 1 comment
Open

Runtime error when autoFocus applied to FormInput element #221

acampbellb opened this issue Dec 30, 2017 · 1 comment

Comments

@acampbellb
Copy link

There is an error in the source code for the FormInput component. The functions 'focus' and 'select' both reference a member that is 'undefined' (input). The following code changes resolve the issue.

file: components\FormInput.js
function: focus
old:
focus () {
this.input.focus();
},
new:
focus () {
this.target.focus();
},
function: select
old:
select () {
this.input.select();
},
new:
select () {
this.target.select();
},

@clschnei
Copy link
Contributor

clschnei commented Jan 1, 2018

@acampbellb Do you have a PR with the changes?

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

No branches or pull requests

2 participants