Skip to content

Firmware: Added file gets removed after clicking "Add file" and cancel #73

Open
@leiyu-bytedance

Description

@leiyu-bytedance

Describe the bug
In the "Firmware" page, after selecting a file to upload, the file is shown below "Add file" button.
Then if one clicks the "Add file" again and cancel the selection in the dialog, the file below the "Add file" button is removed and a red "Required" is shown instead.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Firmware' page
  2. Click on 'Add file', select a tarball, and click OK.
  3. Click on 'Add file' again, and click cancel.
  4. See the issue described above.

Expected behavior
The file selected before remains.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows/MacOS
  • Browser Chrome
  • Version 92.0.4515.107

Additional context
On Windows Firefox 90.0.2, the issue is not reproduced.
So the issue is reproduced only on Chrome. Safari is not tested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions