From 377fcf5783217befe1bc734e2b8310e9793ccab1 Mon Sep 17 00:00:00 2001 From: josias-r Date: Fri, 4 Nov 2022 10:51:40 +0100 Subject: [PATCH] feat: add new `"block-all"` option for `strictClickHandling` --- src/lib/boarding-types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/boarding-types.ts b/src/lib/boarding-types.ts index 7b9be87..be24a7f 100644 --- a/src/lib/boarding-types.ts +++ b/src/lib/boarding-types.ts @@ -37,10 +37,12 @@ export interface BoardingOptions */ keyboardControl?: boolean; /** - * Prevent clicking ANY element except currently active element (or its children) + * If `true`: Prevent clicking ANY element except currently active element (or its children) + * + * If `"block-all"`: Prevent clicking ANYTHING except the popover+overlay * @default true */ - strictClickHandling?: boolean; + strictClickHandling?: boolean | "block-all"; /** * Clicking outside the highlighted element should reset boarding or not * @default true