Skip to content

Carousel breaks page #524

@Smiterix

Description

@Smiterix

Describe the bug
If I use the config itemsToShow: 'auto', the page breaks entirely.
It occurs in version 0.15.1 and 0.16.0. Vue is in version 3.5.14.

To Reproduce
Steps to reproduce the behavior:

  1. Config
const carouselConfig = {
  height: 'auto',
  itemsToScroll: 1,
  itemsToShow: 1,
  snapAlign: 'center',
  wrapAround: true,
  breakpointMode: 'carousel',
}
  1. Template Code
    <Carousel v-bind="carouselConfig"><Slide v-for>...</Slide></Carousel>

  2. Test data
    I have two Slides rendered via v-for

Expected behavior
It does not crash the entire page

Screenshots

Desktop (please complete the following information):

  • Browser Chrome
  • Version 137.0.7151.104

Smartphone (please complete the following information):

Additional context
I can't analyze the problem because the page freezes, so I cant check out the Dev-Tools

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