From 1c6c74be7148ede6eff042aca2d03bd9d0452bc5 Mon Sep 17 00:00:00 2001 From: Cymen Vig Date: Sat, 2 May 2015 19:16:21 -0700 Subject: [PATCH] [fixed] Modal div.modal-content should not have hidden class --- src/Modal.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Modal.js b/src/Modal.js index ef344409e7..31004023d3 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -56,7 +56,7 @@ const Modal = React.createClass({ onClick={this.props.backdrop === true ? this.handleBackdropClick : null} ref="modal">
-
+
{this.props.title ? this.renderHeader() : null} {this.props.children}
@@ -95,17 +95,23 @@ const Modal = React.createClass({ ); } - let style = this.props.bsStyle; + let bsStyle = this.props.bsStyle; let classes = { 'modal-header': true }; - classes['bg-' + style] = style; - classes['text-' + style] = style; + classes['bg-' + bsStyle] = bsStyle; + classes['text-' + bsStyle] = bsStyle; let className = classNames(classes); + let style = {}; + if (this.props.bsStyle) { + style.borderTopLeftRadius = 'inherit'; + style.borderTopRightRadius = 'inherit'; + } + return ( -
+
{closeButton} {this.renderTitle()}