Skip to content

Commit d00c18d

Browse files
authored
fix: make v-click work with LightOrDark by wrapping slots in a div (#2291)
1 parent 7d7aad8 commit d00c18d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/client/builtin/LightOrDark.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { isDark } from '../logic/dark'
33
</script>
44

55
<template>
6-
<slot v-if="isDark" name="dark" />
7-
<slot v-else name="light" />
6+
<div>
7+
<slot v-if="isDark" name="dark" />
8+
<slot v-else name="light" />
9+
</div>
810
</template>

0 commit comments

Comments
 (0)