Why document.addEventListener(‘click’, handleClick, true) doesn’t work I have a react hook that detects a click outside the element: