Target
I want the parent element to be clickable even though the child element is disabled.
Example Code
const parent = document.getElementById('parent');
parent.addEventListener('click', (e) => {
console.log('hello world')
}, true);
<div id="parent">
<input disabled placeholder="foo">
</div>
Important Note
@Drag13 had pointed out to me that it works in Chrome 96
. It does not work in Firefox 95.0
on Linux OS.
Thanks in advance!