Replies: 2 comments 2 replies
|
Hey Matt Yeah, I considered it, but decided against it since it's a UX anti-pattern. Anyway, let's keep it open to see if more people want this. |
|
The onEvent={(data, controls) => {
if (
data.type === EVENTS.STEP_AFTER &&
(data.origin === ORIGIN.KEYBOARD || data.origin === ORIGIN.BUTTON_CLOSE)
) {
controls.skip();
}
}}This way, ESC and the close button skip the tour entirely, while overlay clicks and navigation buttons keep the default behavior. You can adjust the conditions however you like — e.g., only No new props needed. The library already provides the primitives; it's just a matter of wiring them in |
Uh oh!
There was an error while loading. Please reload this page.
👋 It'd be great if
dismissKeyAction+overlayClickActioncould support askipvalue, likecloseButtonAction, allowing a Joyride tour to be aborted if the user clicks on the background or uses theesckey.All reactions