File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ watch(ui.sidebar.sidebarWidth, () => {
2222 }
2323})
2424
25+ // Nuxt UI Portal element
26+ const appPortal = ref <HTMLElement >()
27+
2528const activeDocuments = ref <{ id: string , title: string }[]>([])
2629function detectActiveDocuments() {
2730 activeDocuments .value = host .document .detectActives ().map ((content ) => {
@@ -77,10 +80,7 @@ router.beforeEach((to, from) => {
7780
7881<template >
7982 <div :class =" ui.colorMode.value" >
80- <UApp
81- :toaster =" { portal: false }"
82- :modal =" { portal: false }"
83- >
83+ <UApp :portal =" appPortal" >
8484 <AppLayout :open =" ui.isOpen.value" >
8585 <RouterView v-slot =" { Component }" >
8686 <Transition
@@ -144,6 +144,8 @@ router.beforeEach((to, from) => {
144144 />
145145 </UFieldGroup >
146146 </div >
147+
148+ <div ref =" appPortal" />
147149 </UApp >
148150 </div >
149151</template >
You can’t perform that action at this time.
0 commit comments