close #1418 Fixed: Modal scroll not working
This commit is contained in:
parent
5839a84b73
commit
ef3e0d9599
@ -98,6 +98,14 @@ export default {
|
||||
};
|
||||
},
|
||||
|
||||
created: function () {
|
||||
if (this.show) {
|
||||
let documentClasses = document.body.classList;
|
||||
|
||||
documentClasses.add("modal-open");
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
closeModal() {
|
||||
this.$emit("update:show", false);
|
||||
@ -111,6 +119,10 @@ export default {
|
||||
},
|
||||
|
||||
onCancel() {
|
||||
let documentClasses = document.body.classList;
|
||||
|
||||
documentClasses.remove("modal-open");
|
||||
|
||||
this.$emit("cancel");
|
||||
}
|
||||
},
|
||||
|
@ -130,6 +130,12 @@ export default {
|
||||
};
|
||||
},
|
||||
|
||||
created: function () {
|
||||
let documentClasses = document.body.classList;
|
||||
|
||||
documentClasses.add("modal-open");
|
||||
},
|
||||
|
||||
mounted() {
|
||||
if (this.is_component) {
|
||||
this.component = Vue.component('add-new-component', (resolve, reject) => {
|
||||
@ -230,6 +236,10 @@ export default {
|
||||
},
|
||||
|
||||
onCancel() {
|
||||
let documentClasses = document.body.classList;
|
||||
|
||||
documentClasses.remove("modal-open");
|
||||
|
||||
this.$emit("cancel");
|
||||
}
|
||||
},
|
||||
|
@ -814,7 +814,7 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
this.selectOptions = sortable;
|
||||
return sortable;
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -255,6 +255,10 @@ export default {
|
||||
},
|
||||
|
||||
onCancel() {
|
||||
let documentClasses = document.body.classList;
|
||||
|
||||
documentClasses.remove("modal-open");
|
||||
|
||||
this.display = false;
|
||||
this.form.name = '';
|
||||
this.form.enabled = 1;
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
{{ Form::textGroup('invoice_number', trans('invoices.invoice_number'), 'file') }}
|
||||
|
||||
{{ Form::textGroup('order_number', trans('invoices.order_number'), 'shopping-cart',[]) }}
|
||||
{{ Form::textGroup('order_number', trans('invoices.order_number'), 'shopping-cart', []) }}
|
||||
|
||||
<div class="col-sm-12 mb-4">
|
||||
@php $item_colspan = in_array(setting('localisation.discount_location', 'total'), ['item', 'both']) ? '6' : '5' @endphp
|
||||
|
Loading…
x
Reference in New Issue
Block a user