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

Add onOverlayClicked callback #476

Open
rettrich opened this issue Feb 19, 2024 · 0 comments
Open

Add onOverlayClicked callback #476

rettrich opened this issue Feb 19, 2024 · 0 comments

Comments

@rettrich
Copy link

I have a use case where I'd like to differentiate between closing the tour by dismissing via the close button and clicking on the backdrop overlay - therefore I would like to propose a feature request to add a click callback that is triggered when the backdrop overlay is clicked during an active tour.

It could be added to the Config and look similar to the other hooks:

type Config = {
  // ...
  // triggered when clicking on the backdrop overlay
  onOverlayClicked?: (element?: Element, step: DriveStep, options: { config: Config; state: State }) => void;
}
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

1 participant