@@ -29,6 +29,7 @@ const CModal = props => {
2929 onClosed,
3030 addContentClass,
3131 onClose,
32+ scrollable,
3233 ...attributes
3334 } = props
3435
@@ -71,6 +72,7 @@ const CModal = props => {
7172
7273 const dialogClasses = classNames (
7374 'modal-dialog' , {
75+ 'modal-dialog-scrollable' : scrollable ,
7476 'modal-dialog-centered' : centered ,
7577 [ `modal-${ size } ` ] : size
7678 }
@@ -115,8 +117,8 @@ const CModal = props => {
115117 >
116118 < div className = { dialogClasses } role = "document" >
117119 < div
118- { ...attributes }
119- className = { contentClasses }
120+ { ...attributes }
121+ className = { contentClasses }
120122 ref = { innerRef }
121123 >
122124 < Context . Provider value = { { close} } >
@@ -127,7 +129,7 @@ const CModal = props => {
127129 </ div >
128130 )
129131 } }
130-
132+
131133 </ Transition >
132134 { backdrop && isOpen && < div className = { backdropClasses } > </ div > }
133135 </ div >
@@ -142,14 +144,15 @@ CModal.propTypes = {
142144 centered : PropTypes . bool ,
143145 size : PropTypes . oneOf ( [ '' , 'sm' , 'lg' , 'xl' ] ) ,
144146 backdrop : PropTypes . bool ,
145- color : PropTypes . string ,
147+ color : PropTypes . string ,
146148 borderColor : PropTypes . string ,
147149 onOpened : PropTypes . func ,
148150 onClosed : PropTypes . func ,
149151 fade : PropTypes . bool ,
150152 closeOnBackdrop : PropTypes . bool ,
151153 onClose : PropTypes . func ,
152- addContentClass : PropTypes . string
154+ addContentClass : PropTypes . string ,
155+ scrollable : PropTypes . bool ,
153156}
154157
155158CModal . defaultProps = {
0 commit comments