Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to swipe on a dynamic carousel initialized with 1 child #66

Open
3 tasks done
sayaad opened this issue Feb 19, 2022 · 0 comments
Open
3 tasks done

Unable to swipe on a dynamic carousel initialized with 1 child #66

sayaad opened this issue Feb 19, 2022 · 0 comments

Comments

@sayaad
Copy link

sayaad commented Feb 19, 2022

Describe the bug

When a dynamic carousel is initialized with 1 element, you are not able to swipe/change the currently selected element, even after more children are added to the carousel, as if the carousel still thinks it still only has 1 child.

Edit: The bug happens when the show prop is greater than or equal to the amount of children it is initialized with.

Reproduction

Reproduction pen

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
    Memory: 22.60 GB / 31.92 GB
  Binaries:
    Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 98.0.4758.102
    Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.55)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    @trendyol-js/react-carousel: ^2.0.1 => 2.0.1

Used Package Manager

npm

Logs

No response

Validations

@sayaad sayaad changed the title Unable to swipe dynamic carousel initialized with 1 child Unable to swipe on a dynamic carousel initialized with 1 child Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant