fix(Toaster): teleport to body

Resolves #2404
This commit is contained in:
Benjamin Canac
2024-11-10 19:20:24 +01:00
parent 36ea3e4045
commit b0be26d67f
4 changed files with 118 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ const ToastWrapper = defineComponent({
ClientOnly
},
inheritAttrs: false,
template: `<UToaster>
template: `<UToaster :portal="false">
<ClientOnly>
<UToast v-bind="$attrs">
<template v-for="(_, name) in $slots" #[name]="slotData">