Skip to content

onChange not working ? #22

Open
Open
@karborator

Description

@karborator

I'm able to click on the input and choose a file but then nothing happens, it seems onChange is never fired. Do you have any idea why ?

<FileInput
       name="file"
       accept=".jpg"
       placeholder="Your image"
       className="mdl-textfield__input"
       onChange={this.handleChange.bind(this)}
    />
    ....
    handleChange(event) {
    this.setState({
        'file': event.target.files[0]
    })
};

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