diff --git a/components/src/offerwall/index.ts b/components/src/offerwall/index.ts index 3ed6ff1a..f11e7a1e 100644 --- a/components/src/offerwall/index.ts +++ b/components/src/offerwall/index.ts @@ -130,7 +130,10 @@ export class OfferwallModal extends LitElement { #dialogRef: Ref = createRef() #openDialog() { if (this.#controller.isPreviewMode) { - this.#dialogRef.value!.show() + const dialog = this.#dialogRef.value! + dialog.inert = true + dialog.show() + dialog.inert = false return } this.#dialogRef.value!.showModal()