- Issue created by @promo-il
- Assigned to abhishek_virasat
- Issue was unassigned.
- Status changed to Needs review
9 months ago 7:10am 5 April 2024 - Assigned to promo-il
if off option -until manually closed- then console warning
Uncaught TypeError: can't access property "addEventListener", document.querySelector(...) is null
I'm not very good in JS))
js/conditional_message.js
// Close button.
/*WTpatchOwn: document.querySelector(...) is null*/
//document.querySelector('.conditional-message span').addEventListener('click', function () {
let closeButton = document.querySelector('.conditional-message span');
if(closeButton) closeButton.addEventListener('click', function () {
/*<<<*/
let cmKey = this.parentElement.getAttribute('data-cm-key');
Needs review
2.0
Code