Skip to content

ebay-Carousel: will throw type error when there is only one image #397

@LuuuFan

Description

@LuuuFan

I verified there's no existing issue for this bug.

  • There are no existing issues

Current behavior

Summary

ebayCarousel will swipe left when first render the component, it will throw type error when there is only one image

Image

Repro steps:

  1. Implement EbayCarousel
  2. Put only one EbayCarouselItem component inside

Expect Behaviour:

  1. Should be able to render

Actual Behaviour:

  1. Throw type error in the console.

Expected behavior

No response

Package and version

No response

Device/OS/Browser info

No response

Steps to reproduce

1.
2.
3.
...

Relevant code block

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions