Skip to content

Commit 3359b71

Browse files
authored
Added allowOutsideClick to be capture clicks outside the focus trap (#226)
1 parent 26a69c9 commit 3359b71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Blazored.Modal/Interop/Blazored.Modal.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ interface FocusTrapInstance {
66
}
77

88
export class BlazoredModal {
9-
10-
readonly _options: Options = { escapeDeactivates: false };
9+
10+
readonly _options: Options = { escapeDeactivates: false, allowOutsideClick: () => true };
1111
private _traps: Array<FocusTrapInstance> = [];
1212

1313
public activateScrollLock(): void {

0 commit comments

Comments
 (0)