{"section":"known-issues","requestedLocale":"en","requestedSlug":"unexpected-behavior-in-slider-layout-when-using-the-props-infinitetrue-and-navigationstep1","locale":"en","slug":"unexpected-behavior-in-slider-layout-when-using-the-props-infinitetrue-and-navigationstep1","path":"docs/en/known-issues/Store Framework/unexpected-behavior-in-slider-layout-when-using-the-props-infinitetrue-and-navigationstep1.md","branch":"main","content":"## Summary\n\n\nAn unexpected behavior occurs when using vtex.slider-layout, if these two props are set together:\n\n\n- infinite: true\n- navigationStep: 1\n\nIn this case, when the slider is scrolled using the right arrow, it shows the next card, one at a time, as expected due to the navigationStep=1 parameter. But after it reaches the last card, it then shows the first one, and after that the second one becomes the first in the list, and it goes back and forth when clicking the right arrow.\n\nThe expected behavior would be to roll the slider all the way back to the first card when it reaches the last one, and start the one by one stepping again.\n\n\n\n## Simulation\n\n\nCreate a slider-layout using the two prop values mentioned above and check it's behavior on the website.\n\n\n\n## Workaround\n\n\nAvoid using both properties with those specific values together.\n\nIf the expected behavior is ultimately needed for the page, it is possible to create a custom component to achieve this result."}