Three new callbacks for the default controls: nextButtonOnClick, prevButtonOnClick, pagingDotsOnClick
A new callback,onUserNavigation, called whenever a user interaction triggered carousel navigation.
An expanded type to nextButtonText and prevButtonText props, allowing for any element instead of just strings
The onUserNavigation callback in particular will provide a simple fix for a couple existing issues that want to pause autoplay following user interaction:
Fixes #918
Fixes #499
Type of Change
[x] New feature (non-breaking change which adds functionality)
Description
Adds:
nextButtonOnClick
,prevButtonOnClick
,pagingDotsOnClick
onUserNavigation
, called whenever a user interaction triggered carousel navigation.nextButtonText
andprevButtonText
props, allowing for any element instead of just stringsThe
onUserNavigation
callback in particular will provide a simple fix for a couple existing issues that want to pause autoplay following user interaction: Fixes #918 Fixes #499Type of Change
How Has This Been Tested?
New unit tests