Cancel the onSelect event in carousel

Is there any way we can cancel the onSelect event in DHTMLX 5 Carousel? I’m creating a wizard using the Carousel and I need a way to stop the navigation to next page if validation fails.
Thanks

Unfortunately there is no API in dhtmlxCarousel allowing to block the card selection.