File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,20 @@ export default defineComponent({
74
74
75
75
scrollable: Boolean ,
76
76
77
+ /**
78
+ * CSS selector string or an actual DOM node where
79
+ * where to teleport dialog when it is opened.
80
+ */
81
+ teleportTo: {
82
+ type: String ,
83
+ default: ' body' ,
84
+ },
85
+
86
+ /**
87
+ * disables teleport.
88
+ */
89
+ disableTeleport: Boolean ,
90
+
77
91
transition: {
78
92
type: String ,
79
93
default: ' g-dialog-transition' ,
@@ -206,7 +220,7 @@ export default defineComponent({
206
220
<slot name =" activator" v-bind =" activatorAttrs" />
207
221
208
222
<template v-if =" activatedOnce " >
209
- <Teleport to =" body " :disabled =" local" >
223
+ <Teleport : to =" teleportTo " :disabled =" local || disableTeleport " >
210
224
<GDialogOverlay
211
225
v-if =" !fullscreen"
212
226
ref =" overlayComponent"
@@ -218,7 +232,7 @@ export default defineComponent({
218
232
/>
219
233
</Teleport >
220
234
221
- <Teleport to =" body " :disabled =" local" >
235
+ <Teleport : to =" teleportTo " :disabled =" local || disableTeleport " >
222
236
<GDialogFrame
223
237
ref =" frameComponent"
224
238
:is-active =" isActive"
You can’t perform that action at this time.
0 commit comments