Skip to content

content: Swiper.js migration, slidesPerView value is incorrect #2944

Closed

Description

@Sampath-Lokuge

Describe the Bug

<ion-slides [options]="{ slidesPerView: true, loop: true }">
  <ion-slide>Slide 1</ion-slide>
  <ion-slide>Slide 3</ion-slide>
  <ion-slide>Slide 3</ion-slide>
</ion-slides>

Ref: https://ionicframework.com/docs/angular/slides#properties

Expected Behavior

<ion-slides [options]="{ slidesPerView: 3, loop: true }">
  <ion-slide>Slide 1</ion-slide>
  <ion-slide>Slide 3</ion-slide>
  <ion-slide>Slide 3</ion-slide>
</ion-slides>

Steps to Reproduce

No boolean for slidesPerView:. i.e. it must be number.

Screenshots

No response

Operating System

No response

Browser

No response

Version

No response

Additional Information

No response

Activity

  1. changed the title [-]bug: ion-slides property issue[/-] [+]content: Swiper.js migration, slidesPerView value is incorrect[/+] on May 1, 2023
  2. added
    content
    on May 1, 2023
  3. averyrousseau commented on May 1, 2023

    @averyrousseau
    Contributor

    Fixed via #2945, thank you!

  4. Sampath-Lokuge commented on May 1, 2023

    @Sampath-Lokuge
    Author

    Sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    content

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions