Skip to content

Commit

Permalink
clear files after file picker click
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjlockwood committed Apr 30, 2017
1 parent d91aee0 commit 4c5e8d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
addPathsFromSvg(canvasType?: CanvasType) {
// TODO: this doesnt work right now because the inputs are lazily initialized
this.pendingFilePickerCanvasType = canvasType;
$('#addPathsFromSvgButton').click();
$('#addPathsFromSvgButton').val('').click();
}

// Called when the user picks a file from the file picker.
Expand Down Expand Up @@ -425,7 +425,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
// Proxies a button click to the <input> tag that opens the file picker.
addPathsFromXml(canvasType?: CanvasType) {
// TODO: this doesnt work right now because the inputs are lazily initialized
$('#addPathsFromXmlButton').click();
$('#addPathsFromXmlButton').val('').click();
}

// Called when the user picks a file from the file picker.
Expand Down

0 comments on commit 4c5e8d9

Please sign in to comment.