Custom Controls not working correctly #206
-
Describe the bug To Reproduce
<div>
<button
onClick={() => setActiveSlide(activeSlide > 0 ? activeSlide - 1 : 9)}
>
last
</button>
<button
onClick={() => setActiveSlide(activeSlide < 9 ? activeSlide + 1 : 0)}
>
next
</button>
</div> Expected behavior |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@alex4brandung Hello. The case you described is not a bug. The point is that the component cannot control the logic of the onclick handler for the button rendered outside the component. Alternatively, you can use the following props to customize the navigation buttons: |
Beta Was this translation helpful? Give feedback.
@alex4brandung Hello. The case you described is not a bug. The point is that the component cannot control the logic of the onclick handler for the button rendered outside the component.
Alternatively, you can use the following props to customize the navigation buttons:
forwardBtnProps
&&backwardBtnProps