just an idea, I don't know the code so it could not work, or yes :), but let's go. If you add a pointer-events:none to target element you don't need to call to parentNode.