Skip to content

FileInputField does not react to a form reset event #627

@atmelmicro

Description

@atmelmicro

The FileInputField does not react to a form reset event when it is in a form.

Repro:

<form>
  <FileInputField
    fullWidth
    id="my-file"
    label="First name"
    onFilesChanged={() => {}}
  />
  <input type="file" />
  <button type="reset">Reset</button>
</form>

When a file is added to both of the inputs, only the native one will reset when the reset button is pressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions