Skip to content

Commit 0253d98

Browse files
author
barthy
committed
feat: additional dialog classes property for CModal.vue
1 parent 9ffeb6a commit 0253d98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/modal/CModal.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<slot name="footer">
2929
<button
3030
type="button"
31-
class="btn btn-secondary"
31+
class="btn btn-secondary"
3232
@click="hide($event)"
3333
>
3434
Cancel
@@ -65,6 +65,7 @@ export default {
6565
props: {
6666
show: Boolean,
6767
centered: Boolean,
68+
scrollable: Boolean,
6869
title: String,
6970
size: {
7071
type: String,
@@ -118,6 +119,7 @@ export default {
118119
'modal-dialog',
119120
{
120121
'modal-dialog-centered': this.centered,
122+
'modal-dialog-scrollable': this.scrollable,
121123
[`modal-${this.size}`]: this.size
122124
}
123125
]
@@ -149,7 +151,7 @@ export default {
149151
hide (e, accept = false) {
150152
this.$emit('update:show', false, e, accept)
151153
if(this.visible){
152-
window.removeEventListener("keydown", this.hideEsc );
154+
window.removeEventListener("keydown", this.hideEsc );
153155
}
154156
},
155157
hideEsc (event){

0 commit comments

Comments
 (0)