You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 1.3 released, but it's still not clear how to find out if the user pressed Done or not. I found many closed questions without answers, with references to documentation that says nothing about this.
Can you please give an example before closing this question?
The text was updated successfully, but these errors were encountered:
Only after reading the code of library, I understood how to solve my problem. Here is my solution in react for next generations of seekers
letnextClickHandler=useCallback(()=>{//driverObj.hasNextStep() - this is what you needif(!driverObj.hasNextStep()&&typeofonDoneClick==='function'){//onDoneClick is just an optional prop of my componentonDoneClick();}//required function call, otherwise it won't move forwarddriverObj.moveNext();},[onDoneClick]);constdriverObj=useMemo(()=>{returndriver({showProgress: true,
steps,animate: true,onNextClick: nextClickHandler// assigning callback function});},[steps,nextClickHandler]);
Version 1.3 released, but it's still not clear how to find out if the user pressed Done or not. I found many closed questions without answers, with references to documentation that says nothing about this.
Can you please give an example before closing this question?
The text was updated successfully, but these errors were encountered: