My website features a fixed positioned header with a search box, overlaying content below it (thanks to the higher z-index). When I click on the search box, an event handler is triggered. However, the click response also passes through the header to the elements beneath it. I want to prevent this from happening. I have attempted to use event.preventDefault()
, event.stopPropagation()
, and event.cancelBubble = true
, but none of these methods have successfully resolved the issue.