Skip to content

LightOrDark component does not support v-click #2271

@JessSaavedra

Description

@JessSaavedra

Describe the bug
Using v-click in the component LightOrDark does not work as intended

Minimal reproduction

Steps to reproduce the behavior:

  1. Use LightOrDark component in a slide
  2. Add v-click to it
  3. Go to corresponding slide in presentation, you will notice the corresponding element is rendered, but it behaves as an element without v-click

Example:

<LightOrDark v-click>
    <template #dark="props">
        Dark mode
    </template>
    <template #light="props">
        Light mode
    </template>
</LightOrDark>

Environment

  • Slidev version: 52.1.0
  • Browser: Google Chrome
  • OS: Mac OS

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions