From b667b75afe279e8f00bb752c980421e0a75f182a Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 20 Feb 2024 08:40:51 +0100 Subject: [PATCH] fix(vitepress): missing `:shown` prop for query, fix #595 --- packages/vitepress-twoslash/src/renderer-floating-vue.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vitepress-twoslash/src/renderer-floating-vue.ts b/packages/vitepress-twoslash/src/renderer-floating-vue.ts index 1bd539bb8..7dbf0127b 100644 --- a/packages/vitepress-twoslash/src/renderer-floating-vue.ts +++ b/packages/vitepress-twoslash/src/renderer-floating-vue.ts @@ -85,7 +85,8 @@ export function rendererFloatingVue(options: TwoslashFloatingVueRendererOptions tagName: 'v-menu', properties: { ...hoverBasicProps, - theme: floatingVueThemeQuery, + ':shown': 'true', + 'theme': floatingVueThemeQuery, }, }, queryCompose: compose,