From fc482b3adbb28e1991527613a8929bdcb9938668 Mon Sep 17 00:00:00 2001 From: Felipe Najson Date: Mon, 27 Sep 2021 13:59:08 -0300 Subject: [PATCH] Update handleBodyClick event --- src/consent-manager/container.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/consent-manager/container.tsx b/src/consent-manager/container.tsx index 0137355b..8667ecdd 100644 --- a/src/consent-manager/container.tsx +++ b/src/consent-manager/container.tsx @@ -109,7 +109,10 @@ const Container: React.FC = props => { return } - props.saveConsent(undefined, false) + // Accept all consent on page interaction. + if (!isDialogOpen && props.implyConsentOnInteraction) { + onAcceptAll() + } } const showDialog = () => toggleDialog(true)