Skip to content
This repository was archived by the owner on Oct 8, 2018. It is now read-only.
This repository was archived by the owner on Oct 8, 2018. It is now read-only.

Click event submit form in case I use button element #26

@Enase

Description

@Enase

Could you change click event in a way to prevent default action?

https://github.com/GrillWork/react-file-reader/blob/master/ReactFileReader.js#L11

  clickInput = (e) => {
    e.preventDefault()
    let element = document.getElementById(this.state.elementId);
    element.value = '';
    element.click();
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions