JS Warning About Not Enough Slides

Created on 7 October 2024, about 2 months ago

Problem/Motivation

When a slide show only has 1 image, you see this in the console:

Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters

Steps to reproduce

Create a slideshow with only 1 image

Proposed resolution

Check for number of slides before sending to JS.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States JCL324 Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024