Skip to content

Commit

Permalink
Merge branch 'master' into candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Case committed Jun 27, 2018
2 parents e5aba70 + fa1b378 commit e8c94d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ export default class App extends Component {
const showConsentToolButtonClicked = RegExp('showConsentTool').test(target.getAttribute('onclick'));
const appDiv = self.base;
const { layout } = config;
const { isConsentToolShowing, isFooterConsentToolShowing, isThinConsentToolShowing, isFooterShowing } = store;

if (!showConsentToolButtonClicked && !appDiv.contains(target)) {
if ( (isConsentToolShowing || isFooterConsentToolShowing || isThinConsentToolShowing || isFooterShowing) &&
!showConsentToolButtonClicked &&
!appDiv.contains(target) ) {
store.toggleConsentToolShowing(false);

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

0 comments on commit e8c94d3

Please sign in to comment.