-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
t0gglesLinked to the t0ggles taskLinked to the t0ggles task
Description
Check that this is really a bug
- I confirm
Reproduction link
Bug description
I'm using Vue with Swiper Element and define SwiperOptions in my vue setup using SwiperOptions Type form swiper/types. Then I use v-bind to pass the attributes as props.
thumbs.swiper requires the type Swiper | null, so passing a CSS Selector obviously throws the following type error: Type 'string' is not assignable to type 'Swiper'., but the thumbs do work.
So the thumbs.swiper type should be Swiper | string | null instead.
This may also effect other options.
Expected Behavior
No response
Actual Behavior
No response
Swiper version
11.0.6
Platform/Target and Browser Versions
all
Validations
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Make sure this is a Swiper issue and not a framework-specific issue
Would you like to open a PR for this bug?
- I'm willing to open a PR
Metadata
Metadata
Assignees
Labels
t0gglesLinked to the t0ggles taskLinked to the t0ggles task