How to avoid exiting when clicking on the mask
YikaiHu opened this issue · comments
Kervin Hu commented
I need a close button to close and don't want to click the overlay to close
I think should expose a config overlayClosable : boolean to control the action
Althéa Feuillet commented
Hi @YikaiHu,
I encountered the same issue and found a solution to get around this problem.
Start by using the allowClose: false
option in your driverObj
configuration:
const driverObj = driver.js.driver({
allowClose: false,
});
Then create a CSS class to display the close button:
.driver-popover-close-btn {
display: flex !important;
}
Kervin Hu commented
Thanks a lot @altheaFeu , I will have a try next week.