Skip to content

nv-file-select selection of same file after removing it does not work #550

Open
@JuHwon

Description

@JuHwon

Should the isEmptyAfterSelection function in the src/services/FileSelect.js really only be dependent on the multiple attribute? I e.g. need to reset the input field without the multiple attribute after selection.

I got a input element with the nv-file-select attribute like this

    <input id="upload-input"
           ng-disabled="vm.uploader.isUploading"
           type="file"
           accept=".ext"
           nv-file-select=""
           uploader="vm.uploader">

When i have selected the file foo.ext and then i am removing it with item.remove(); it is not in my queue anymore. Though the input element still has the value foo.ext. So when i want to select this file again because i have removed it accidentally - it wont work since the change event will not be thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions