assaf/zombie — Issue #186: Zombie ignores event.preventDefault();
Author: nationalfieldtravis
Created: 2011-10-12 21:51:42+00:00
State: open

I have a link. on that link I have a click event. On that event I prevent default then I return false. I have tried with and without hte prevent default and with and without the return false.

In a web browser (firefox, chrome, ie), the click event is triggered, then my js is run (to open a modal window) then the default is prevented and the url is not followed. In zombie however, the default is not prevented and the url is followed.

I am not skilled enough in JS to know how to hack at this. I printed the event in the jsdom patch and preventDefault says false. I also printed it in the browser.fire and it says false. At this point, I don't know where else to try it.

Any help would be appreciated.