We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 992de83 + c85b492 commit b7f96c2Copy full SHA for b7f96c2
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-chat-elements",
3
- "version": "0.7.0",
+ "version": "0.7.1",
4
"description": "Reactjs chat components",
5
"author": "Avare Kodcu <abdurrahmaneker58@gmail.com>",
6
"main": "dist/main.js",
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