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

onChange not working ? #22

Open
karborator opened this issue Jan 8, 2023 · 0 comments
Open

onChange not working ? #22

karborator opened this issue Jan 8, 2023 · 0 comments

Comments

@karborator
Copy link

karborator commented Jan 8, 2023

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]
    })
};
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

1 participant