Fix preventDefault on ignored targets