This repository was archived by the owner on Mar 27, 2025. It is now read-only.
File tree 2 files changed +7
-7
lines changed
packages/bootstrap-vue-next/src/components
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <teleport :to =" props.to " :disabled =" staticBoolean " >
2
+ <teleport :to =" props.teleportTo " :disabled =" teleportDisabledBoolean " >
3
3
<b-transition
4
4
:no-fade =" true"
5
5
:trans-props =" {enterToClass: 'show'}"
@@ -156,9 +156,9 @@ interface BModalProps {
156
156
titleClass? : string
157
157
titleSrOnly? : Booleanish
158
158
titleTag? : string
159
- static? : Booleanish
160
159
autoFocusButton? : ' ok' | ' cancel' | ' close'
161
- to? : string | RendererElement | null | undefined
160
+ teleportDisabled? : Booleanish
161
+ teleportTo? : string | RendererElement | null | undefined
162
162
}
163
163
164
164
const props = withDefaults (defineProps <BModalProps >(), {
@@ -203,13 +203,13 @@ const props = withDefaults(defineProps<BModalProps>(), {
203
203
okDisabled: false ,
204
204
okOnly: false ,
205
205
okTitle: ' Ok' ,
206
- static: false ,
207
206
okVariant: ' primary' ,
208
207
scrollable: false ,
209
208
show: false ,
210
209
titleSrOnly: false ,
211
210
titleTag: ' h5' ,
212
- to: ' body' ,
211
+ teleportDisabled: false ,
212
+ teleportTo: ' body' ,
213
213
})
214
214
215
215
interface BModalEmits {
@@ -269,7 +269,7 @@ const okDisabledBoolean = useBooleanish(() => props.okDisabled)
269
269
const okOnlyBoolean = useBooleanish (() => props .okOnly )
270
270
const scrollableBoolean = useBooleanish (() => props .scrollable )
271
271
const titleSrOnlyBoolean = useBooleanish (() => props .titleSrOnly )
272
- const staticBoolean = useBooleanish (() => props .static )
272
+ const teleportDisabledBoolean = useBooleanish (() => props .teleportDisabled )
273
273
274
274
const element = ref <HTMLElement | null >(null )
275
275
const okButton = ref <HTMLElement | null >(null )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ describe('modal', () => {
20
20
it ( 'has body teleports element set by to property' , ( ) => {
21
21
const wrapper = mount ( BModal , {
22
22
props : {
23
- to : '#body-teleports' ,
23
+ teleportTo : '#body-teleports' ,
24
24
} ,
25
25
} )
26
26
expect ( wrapper . exists ( ) ) . toBe ( true )
You can’t perform that action at this time.
0 commit comments