JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">click me to see the crazy error in IE</div>
JavaScript
$.event.special.bustedevent = {
setup: function() {
$( this ).bind( "click", jQuery.event.special.bustedevent.handler );
},
teardown: function() {
$( this ).unbind( "click", jQuery.event.special.bustedevent.handler );
},
handler: function( event ) {
event.type = "bustedevent";
var self = this;
setTimeout(function () {
jQuery.event.handle.call( self, event );
}, 1 );
}
};
$( "#test" ).bind( "bustedevent", function( event ) {
event.preventDefault();
});
​