Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Commit adfe2ad

Browse files
behzad888rnicholus
authored andcommitted
fix(delete-button.jsx): onClick may be a boolean (#160)
Expected onClick listener to be a function, instead got a value of boolean type.
1 parent 2789439 commit adfe2ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fine-uploader",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"license": "MIT",
55
"description": "React UI components for using Fine Uploader in a React-based project.",
66
"author": {

Diff for: src/delete-button.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class DeleteButton extends Component {
6565
<button aria-label='delete'
6666
className={ `react-fine-uploader-delete-button ${this.props.className || ''}` }
6767
disabled={ !this.state.deletable || this.state.deleting }
68-
onClick={ this.state.deletable && !this.state.deleting && this._onClick }
68+
onClick={ (this.state.deletable && !this.state.deleting) ? this._onClick : null }
6969
type='button'
7070
{ ...elementProps }
7171
>

0 commit comments

Comments
 (0)