I am currently building a modal based cookie consent function for a website. Hence I am trying to close a modal with help of a custom interaction (inside the modal) instead with the ‘normal’ switch modal action.
Quick use case summary:
- on page load a custom interaction is checking if the ‘consentCookie’ is present
- if it is present, the page just loads - all fine
- if the cookie is not present a modal is toggled to show the cookie consent dialog.
- when the user is agreeing (‘understood’ button), a custom interaction should (a) set the consentCookie and (b) toggle the modal. (b) is failing. The cookie is set, but the modal will not be toggled off.
For your benefit, please find attached a small project file, set up to show the issue.
CookieConsent_CustInteract.bloc (49.7 KB)
Has anyone got an idea what is going wrong, may be a bug?
Thanks in advance,
TomS