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

React Carousel forces sliding animation when using defaultIndex #3043

Open
1 of 3 tasks
itsJimmyQ opened this issue Nov 13, 2024 · 2 comments
Open
1 of 3 tasks

React Carousel forces sliding animation when using defaultIndex #3043

itsJimmyQ opened this issue Nov 13, 2024 · 2 comments
Labels

Comments

@itsJimmyQ
Copy link

itsJimmyQ commented Nov 13, 2024

Description

When I use defaultIndex prop, I expect the carousel to be rendered with that slide initially.
But instead, it would render the first image then slide through all the slides inbetween with a slide animation to the chosen default image.

Link to Reproduction (or Detailed Explanation)

See steps.

Steps to Reproduce

  1. Implement a basic Ark UI carousel (Reect)
  2. Have more than 1 image
  3. Set prop defaultIndex to be larger than 0

Ark UI Version

4.4.0

Framework

  • React
  • Solid
  • Vue

Browser

No response

Additional Information

No response

@cschroeter
Copy link
Member

@itsJimmyQ

Thanks for reaching out. Good catch. Will see what we can do :)

@cschroeter cschroeter added the bug label Nov 22, 2024
@itsJimmyQ
Copy link
Author

Hey @cschroeter
Is there any update on this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants