Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d781bed

Browse filesBrowse files
authored
Merge pull request #150 from barthy-koeln/feature/modal-dialog-classes
feat: additional 'scrollable' property for CModal.vue - thanks @barthy-koeln
2 parents 9ffeb6a + 0253d98 commit d781bed
Copy full SHA for d781bed

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎src/components/modal/CModal.vue

Copy file name to clipboardExpand all lines: src/components/modal/CModal.vue
+4-2Lines changed: 4 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.