We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
html
body
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'd like to add a body class when a modal is opened, this is reposition my Toast container. My toast are offset under my fixed header:
But if a modal trigger a Toast, I don't want the offset.
Currently:
Desired:
The text was updated successfully, but these errors were encountered:
Took me a while, but I guess this is the solution:
import { createVfm, type Vfm } from 'vue-final-modal'; export default defineNuxtPlugin((nuxtApp) => { const vfm = createVfm() as Vfm; const { openedModals } = vfm; watch(openedModals, (opened) => { if (opened.length) { document.documentElement.classList.add('has-vfm'); } else { document.documentElement.classList.remove('has-vfm'); } }); nuxtApp.vueApp.use(vfm); });
Sorry, something went wrong.
hunterliu1003
No branches or pull requests
Hi,

I'd like to add a body class when a modal is opened, this is reposition my Toast container.
My toast are offset under my fixed header:
But if a modal trigger a Toast, I don't want the offset.
Currently:

Desired:

The text was updated successfully, but these errors were encountered: