Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to avoid exiting when clicking on the mask #467

Open
YikaiHu opened this issue Jan 12, 2024 · 2 comments
Open

How to avoid exiting when clicking on the mask #467

YikaiHu opened this issue Jan 12, 2024 · 2 comments

Comments

@YikaiHu
Copy link

YikaiHu commented Jan 12, 2024

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

@altheaFeu
Copy link

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;
}

@YikaiHu
Copy link
Author

YikaiHu commented Mar 9, 2024

Thanks a lot @altheaFeu , I will have a try next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants