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

fix(Carousel): fix animation direction when using `CarouselIndicators… #749

Merged
merged 2 commits into from
Mar 23, 2018

Conversation

bmey
Copy link
Contributor

@bmey bmey commented Dec 22, 2017

…` (#748).

The approach I took is to add a state property in Carousel that gets set when indicator children are clicked. I'm open to other approaches, but this seemed like the simplest change with the current structure.

Copy link
Member

@TheSharpieOne TheSharpieOne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but I am just going to note that if the click set indicatorClicked but the user defined toggle method determines to take no action, indicatorClicked will remain set to true for the next action.
We may want to do something similar for the controlLeft and controlRight in the future if this becomes an issue.

@TheSharpieOne TheSharpieOne merged commit 0a15fe7 into reactstrap:master Mar 23, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants