grevory / bootstrap-file-input

Standardizes the file input field to look like a Bootstrap button in all browsers
Other
179 stars 63 forks source link

Closing file browser without selecting a file doesn't remove file name #34

Open leonklingele opened 10 years ago

leonklingele commented 10 years ago

Steps to reproduce:

  1. Open file browser
  2. Select a file
  3. Confirm selection (usually with button "Open")
    • File browser closes and file name is shown on button
  4. Open file browser again
  5. Press "Cancel" to close file browser
  6. File name is still shown, however no file has been selected

    • Test with the following JS:
       document.querySelector('input[type="file"]').files;

    Affected browsers:

    • Chrome

Seems to be an issue with Chrome.