Skip to content

Runtime error when autoFocus applied to FormInput element #221

@acampbellb

Description

@acampbellb

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();
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions