Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 79e05c2

Browse files
Yuri Drabikgregthebusker
authored andcommitted
bugfix on last PR - cancel button cannot be displayed (#7)
* add hideCancelButton property * alphabetize props * bugfix - cancelButton not showing
1 parent 9a880ea commit 79e05c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Confirm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var Confirm = React.createClass({
5555
},
5656

5757
render() {
58-
var cancelButton = this.state.showCancelButton ?
58+
var cancelButton = this.props.showCancelButton ?
5959
(<Button bsStyle="default" onClick={this.onClose}>{this.props.cancelText}</Button>) : null;
6060
var modal = (
6161
<Modal show={this.state.isOpened} onHide={this.onClose}>

0 commit comments

Comments
 (0)