Arrows not disabling at the beginning or the end #471
-
Hello,
And here is how I launch the slider (everything works fine apart from this):
Am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Splide does not hide arrows but adds |
Beta Was this translation helpful? Give feedback.
-
FYI: I'm having a similar problem. When moving to the last slide (only the last slide, not the first), the "Next" arrow isn't having the 'disabled' property set. The last slide is 2-3 pixels short of the end of the container and Splide only adds the disabled to the arrow if the user clicks on the Next arrow button again (even though we're already on the last slide). I've tried to manually fix it with in the Splide:moved event, but the value doesn't stick (guessing the internals are removing the property again). Image of the Splide component on the 'last' slide, but still with an active 'Next' arrow. |
Beta Was this translation helpful? Give feedback.
-
@ZermattChris Indeed, having the same issue. The pagination and arrows are too much tied to individual slides, which doesn't make sense in every use case, especially not when having a fixedWidth set. So let's say we have
Clicking on the Next arrow the carrousel will move and focus on the second slide. After 4 clicks all items are visible, and there is nothing to scroll really, but you still can click next (and it will move focus to the 6th, 7th and 8th item of the carrousel). It makes sense if you're design has a certain focus state for slides, but I bet that in a lot of use cases you just want to use the arrows to see all items, and not per se focus on them visually. Some other carrousel plugins have dealt with this situation differently. Would be nice if SplideJS would offer a solution for this usecase. Or maybe I'm missing a crucial setting here. |
Beta Was this translation helpful? Give feedback.
-
Seems this has been resolved: https://splidejs.com/guides/auto-width/#navigations-in-the-last-page
|
Beta Was this translation helpful? Give feedback.
Splide does not hide arrows but adds
disabled
attribute.#358 (comment)