@@ -29,6 +29,7 @@ const CModal = props => {
29
29
onClosed,
30
30
addContentClass,
31
31
onClose,
32
+ scrollable,
32
33
...attributes
33
34
} = props
34
35
@@ -71,6 +72,7 @@ const CModal = props => {
71
72
72
73
const dialogClasses = classNames (
73
74
'modal-dialog' , {
75
+ 'modal-dialog-scrollable' : scrollable ,
74
76
'modal-dialog-centered' : centered ,
75
77
[ `modal-${ size } ` ] : size
76
78
}
@@ -115,8 +117,8 @@ const CModal = props => {
115
117
>
116
118
< div className = { dialogClasses } role = "document" >
117
119
< div
118
- { ...attributes }
119
- className = { contentClasses }
120
+ { ...attributes }
121
+ className = { contentClasses }
120
122
ref = { innerRef }
121
123
>
122
124
< Context . Provider value = { { close} } >
@@ -127,7 +129,7 @@ const CModal = props => {
127
129
</ div >
128
130
)
129
131
} }
130
-
132
+
131
133
</ Transition >
132
134
{ backdrop && isOpen && < div className = { backdropClasses } > </ div > }
133
135
</ div >
@@ -142,14 +144,15 @@ CModal.propTypes = {
142
144
centered : PropTypes . bool ,
143
145
size : PropTypes . oneOf ( [ '' , 'sm' , 'lg' , 'xl' ] ) ,
144
146
backdrop : PropTypes . bool ,
145
- color : PropTypes . string ,
147
+ color : PropTypes . string ,
146
148
borderColor : PropTypes . string ,
147
149
onOpened : PropTypes . func ,
148
150
onClosed : PropTypes . func ,
149
151
fade : PropTypes . bool ,
150
152
closeOnBackdrop : PropTypes . bool ,
151
153
onClose : PropTypes . func ,
152
- addContentClass : PropTypes . string
154
+ addContentClass : PropTypes . string ,
155
+ scrollable : PropTypes . bool ,
153
156
}
154
157
155
158
CModal . defaultProps = {
0 commit comments