Skip to content

Commit

Permalink
Reset file upload on click so that onchange fires if same file is upl…
Browse files Browse the repository at this point in the history
…oaded multiple times
  • Loading branch information
lukasolson committed Jul 28, 2015
1 parent b82f5b5 commit 796e64b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kibana/directives/file_upload.js
Expand Up @@ -24,6 +24,7 @@ define(function (require) {
});

$elem.on('click', function (e) {
$fileInput.val(null);
$fileInput.trigger('click');
});
}
Expand Down

0 comments on commit 796e64b

Please sign in to comment.