Skip to content

Commit

Permalink
fix(limel-file): change event contains file
Browse files Browse the repository at this point in the history
fix #355
  • Loading branch information
BregenzerK authored and adrianschmidt committed Sep 10, 2019
1 parent fd2dce9 commit 0d3974e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/file/file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export class File {
filename: file.name,
contentType: file.type,
size: file.size,
fileContent: file,
};
this.change.emit(limeFile);
this.chipSet.blur();
Expand Down
5 changes: 5 additions & 0 deletions src/components/file/file.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ export interface FileInfo {
* Size of file.
*/
size?: number;

/**
* the file content
*/
fileContent?: File;
}

0 comments on commit 0d3974e

Please sign in to comment.