potentially fixes #5203

This commit is contained in:
Kukks 2023-07-28 21:56:19 +02:00
parent 88c66f30f2
commit 82586590a7
No known key found for this signature in database
GPG Key ID: 8E5530D9D1C93097

View File

@ -160,7 +160,10 @@ document.addEventListener("DOMContentLoaded",function () {
}
},
mounted() {
this.$cart = new bootstrap.Offcanvas(this.$refs.cart, {backdrop: false})
const self =this;
nextTick(() => {
self.$cart = new bootstrap.Offcanvas("#cart", {backdrop: false})
})
window.addEventListener('pagehide', () => {
if (this.payButtonLoading) {
this.unsetPayButtonLoading();