Hello David,
This nearly worked, though i still got the error messages, however I made a slight tweak to your suggestion which has worked:
Using the JS node where you suggested and editing the code to (just moving the remove listener to the else clause):
document.addEventListener('click', function _listener(event) {
if ( event.target.id === $parameters.ElementJobParentId || event.target.closest('#' + $parameters.ElementJobParentId)) {
}else{
$actions.CloseEmployeeList()
this.removeEventListener('click', _listener);
}
});
Thank you for your help! much appreciated. Ill mark yours as the solution.
Chris