How to find what is causing a preventDefault which overrides normal click behavior

You should be able to override Event.prototype.preventDefault and add a debugger statement as its first line.

var oldEPD = Event.prototype.preventDefault;
Event.prototype.preventDefault = function() {
    debugger;
    oldEPD.call(this);
};
category: Code

Leave a Reply

Your email address will not be published. Required fields are marked *