Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Update handleBodyClick event (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-najson-ntf authored Sep 27, 2021
1 parent e872630 commit e74088f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/consent-manager/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ const Container: React.FC<ContainerProps> = props => {
return
}

props.saveConsent(undefined, false)
// Accept all consent on page interaction.
if (!isDialogOpen && props.implyConsentOnInteraction) {
onAcceptAll()
}
}

const showDialog = () => toggleDialog(true)
Expand Down

0 comments on commit e74088f

Please sign in to comment.