diff --git a/src/Modal.js b/src/Modal.js index f6c64ec3d3..46c60f6b57 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -126,6 +126,7 @@ const Modal = React.createClass({ getDefaultProps(){ return { + bsClass: 'modal', show: false, animation: true, backdrop: true, @@ -203,12 +204,12 @@ const Modal = React.createClass({ }, renderBackdrop(modal) { - let { animation } = this.props; + let { animation, bsClass } = this.props; let duration = Modal.BACKDROP_TRANSITION_DURATION; let backdrop = (
); diff --git a/src/ModalDialog.js b/src/ModalDialog.js index 08552f6802..e23ba9954f 100644 --- a/src/ModalDialog.js +++ b/src/ModalDialog.js @@ -32,10 +32,11 @@ const ModalDialog = React.createClass({ render() { let modalStyle = { display: 'block'}; + let bsClass = this.props.bsClass; let dialogClasses = this.getBsClassSet(); delete dialogClasses.modal; - dialogClasses['modal-dialog'] = true; + dialogClasses[`${bsClass}-dialog`] = true; return (