showCancelLink not working
Closed this issue · 4 comments
I tried showCancelLink: true in the defaultStepOptions as given in the example, but its not working. Tried adding to the individual steps, its still not working.
@realRaghavGupta can you please show us the code that is not working? @chuckcarpenter does the cancel link show up for you?
const tourOptions = {
defaultStepOptions: { scrollTo:true, cancelIcon:true },
useModalOverlay: true
};
I am using this.
Cancel link doesn't show up for me.
@realRaghavGupta I think cancelIcon
is supposed to be an object. Check the format here https://shepherdjs.dev/docs/Step.html#Step
@realRaghavGupta you're right the example does have the old way. Using this does work:
const tourOptions = {
defaultStepOptions: {
cancelIcon: {
enabled: true
}
},
useModalOverlay: true
};
I'm going to PR an update to the example site and readme. Thanks for pointing it out!