diff --git a/app.vue b/app.vue index 93ab5d5..87e70a3 100644 --- a/app.vue +++ b/app.vue @@ -29,11 +29,11 @@ modalStore.$onAction( // onError, // hook if the action throws or rejects }) => { after(() => { - useHead({ - bodyAttrs: { - class: store.activeModal ? 'overflow-hidden' : '', - }, - }); + if (store.activeModal) { + document.body.classList.add('overflow-hidden'); + } else { + document.body.classList.remove('overflow-hidden'); + } }); }, );