webui-vue icon indicating copy to clipboard operation
webui-vue copied to clipboard

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

Open leiyu-bytedance opened this issue 3 years ago • 3 comments

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.

leiyu-bytedance avatar Jul 28 '21 09:07 leiyu-bytedance

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

dixsie avatar Oct 07 '21 16:10 dixsie

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?

leiyu-bytedance avatar Oct 08 '21 06:10 leiyu-bytedance

Still an issue?

gtmills avatar Apr 29 '24 16:04 gtmills