Skip to content

Property mousewheel not working with ClientOnly #199

Description

@frederikheld

Hello,

I'm using the Swiper Web Components through your nuxt-swiper plugin.

As per your docs, to get around annoying Nuxt hydration bs errors, the web componets have to be wrapped in a ClientOnly block. Unfortunately, this breaks the mousewheel option of your plugin which does not seem to have any effect if the slider is in a ClientOnly block.

However, it works if I do not wrap the swiper element in a ClientOnly block but then I will get an annyoing Nuxt hydration bs error.

I tried to inject the settings via props on the component as well as through the swiper instance in TS code. mousewheel doesn't work either way.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions