openbmc / webui-vue

Web-based user interface built on Vue.js for managing OpenBMC systems
https://openbmc.github.io/webui-vue/
Apache License 2.0
52 stars 54 forks source link

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

Open leiyu-bytedance opened 3 years ago

leiyu-bytedance commented 3 years ago

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):

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.

dixsie commented 2 years ago

Looks like this is how the Bootstrap Vue file component behaves on Chrome. I observed the same behavior in the example in the Bootstrap Vue docs https://bootstrap-vue.org/docs/components/form-file on Chrome

This may be a bug for Bootstrap Vue, not the Web UI

leiyu-bytedance commented 2 years ago

Looks like this is how the Bootstrap Vue file component behaves on Chrome. I observed the same behavior in the example in the Bootstrap Vue docs https://bootstrap-vue.org/docs/components/form-file on Chrome

This may be a bug for Bootstrap Vue, not the Web UI

Could you report this issue to vue?

gtmills commented 3 months ago

Still an issue?