Skip to content

Commit

Permalink
Update FileSelect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
d42f committed Sep 9, 2015
1 parent ddb9767 commit 13da2c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/services/FileSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export default (FileDirective) => {

if(!this.uploader.isHTML5) this.destroy();
this.uploader.addToQueue(files, options, filters);
if(this.isEmptyAfterSelection()) this.element.prop('value', null);
if(this.isEmptyAfterSelection()) {
this.element.prop('value', null);
this.element.replaceWith(this.element = this.element.clone(true)); // IE fix
}
}
}

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

module.exports.$inject = [
'FileDirective'
];
];

0 comments on commit 13da2c0

Please sign in to comment.