Skip to content

Commit e8c94d3

Browse files
author
Nicholas Case
committed
Merge branch 'master' into candidate
2 parents e5aba70 + fa1b378 commit e8c94d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/app.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ export default class App extends Component {
106106
const showConsentToolButtonClicked = RegExp('showConsentTool').test(target.getAttribute('onclick'));
107107
const appDiv = self.base;
108108
const { layout } = config;
109+
const { isConsentToolShowing, isFooterConsentToolShowing, isThinConsentToolShowing, isFooterShowing } = store;
109110

110-
if (!showConsentToolButtonClicked && !appDiv.contains(target)) {
111+
if ( (isConsentToolShowing || isFooterConsentToolShowing || isThinConsentToolShowing || isFooterShowing) &&
112+
!showConsentToolButtonClicked &&
113+
!appDiv.contains(target) ) {
111114
store.toggleConsentToolShowing(false);
112115

113116
// Render footer style CMP if no consent decision has been submitted yet

0 commit comments

Comments
 (0)