Finding that pesky listener that’s hijacking your event (Javascript)
Aziz Khambati
442

Try:

const originalPreventDefault = Event.prototype.preventDefault
Event.prototype.preventDefault = function() {
if (true /* or any other condition */)
debugger
originalPreventDefault.call(this)
}
Like what you read? Give Rom Grk a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.