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
Slides on the same view #249
Comments
Hey @Yagasaki7K did you try to call slider.update() after setting the news data? |
No. You have a example to show to me? |
Yes, see this example. https://keen-slider.io/examples#mutation The plugin used in this example can easily be copied into your project. |
I do the same thing, the difference is that I added dynamic information and put it in loop and that alone was reason for every time I add two or three images, it gets stagnant on a single slide. I don't know if it would be the case to send the code, but follow the example:
And in the React and Sanity.io with dynamics info:
|
Even using different variables to add more slides (several |
Which version do you use? |
"keen-slider": "^6.7.0" |
I know I ask this before but please try it again to add the mutation observer plugin. Just copy the following code in the plugin array.
|
@rcbyr I think I'm experiencing this same problem. I followed the mutation and even the resize observer examples, and I still get the same behavior:
If I inspect the HTML, I see that the I'm also on |
I noticed that my issue was somehow caused by passing a |
Hey @aecorredor could you create a reproducible example in a repo or codesandbox? The key property is actually not a problem for the slider. I also use it in some examples. I could imagine that the key changes when it shouldn't. |
@rcbyr thanks for the prompt answer. Let me see if I can get something up. I didn't follow this: This use case seemed to be identical to the |
Why my "keen-slider" stay that? Anyone can help me?
When I make any changes to the code, it changes back to its original state one slide at a time, but as soon as I refresh the page or go up to production mode, it reverts back to its original three-slide state - no swiping - in the same place.
setFirstNews(data[0]),
setSecondNews(data[1]),
setThirdNews(data[2])
Data is coming from Sanity.io and the SecondNews and ThirdNews is the same than the FirstNews speaking about the code.
The text was updated successfully, but these errors were encountered: