Skip to content

Commit 91da67d

Browse files
committed
Merge pull request nervgh#512 from d42f/patch-3
Update FileSelect.js
2 parents ddb9767 + 13da2c0 commit 91da67d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/services/FileSelect.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ export default (FileDirective) => {
6565

6666
if(!this.uploader.isHTML5) this.destroy();
6767
this.uploader.addToQueue(files, options, filters);
68-
if(this.isEmptyAfterSelection()) this.element.prop('value', null);
68+
if(this.isEmptyAfterSelection()) {
69+
this.element.prop('value', null);
70+
this.element.replaceWith(this.element = this.element.clone(true)); // IE fix
71+
}
6972
}
7073
}
7174

@@ -76,4 +79,4 @@ export default (FileDirective) => {
7679

7780
module.exports.$inject = [
7881
'FileDirective'
79-
];
82+
];

0 commit comments

Comments
 (0)