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.
1 parent 437849a commit 6653d0eCopy full SHA for 6653d0e
src/Repl.vue
@@ -73,7 +73,7 @@ const outputSlotName = computed(() => (props.layoutReverse ? 'left' : 'right'))
73
provide(injectKeyProps, toRefs(props))
74
provide(
75
injectKeyPreviewRef,
76
- computed(() => outputRef.value?.previewRef?.container),
+ computed(() => outputRef.value?.previewRef?.container ?? null),
77
)
78
79
/**
src/types.ts
@@ -18,5 +18,5 @@ export type OutputModes = 'preview' | EditorMode
18
export const injectKeyProps: InjectionKey<ToRefs<Required<Props>>> =
19
Symbol('props')
20
export const injectKeyPreviewRef: InjectionKey<
21
- ComputedRef<HTMLDivElement | undefined>
+ ComputedRef<HTMLDivElement | null>
22
> = Symbol('preview-ref')
0 commit comments