We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 992de83 commit 15d4b2eCopy full SHA for 15d4b2e
1 file changed
src/FileMessage/FileMessage.js
@@ -9,14 +9,14 @@ const Circle = ProgressBar.Circle;
9
10
export class FileMessage extends Component {
11
12
- onClick() {
+ onClick(e) {
13
if (!this.props.data.status)
14
return;
15
16
if (!this.props.data.status.download && this.props.onDownload instanceof Function)
17
- this.props.onDownload();
+ this.props.onDownload(e);
18
else if (this.props.data.status.download && this.props.onOpen instanceof Function)
19
- this.props.onOpen();
+ this.props.onOpen(e);
20
}
21
22
render() {
0 commit comments