I have a keypress event handler attached to a text field that is calling Prototype’s Event.stop(event) function. This in turn calls event.preventDefault and event.stopPropagation. I am stepping through the code using firebug. After executing the handler code, firebug hits a break point in the field’s form’s keypress handler. Has anyone ever heard of Event.stop not working in FF?
Thanks for your help,
Rob
Let’s do one bump before I go to work and then let’s quit.
Thanks,
Rob
Could you post a snippet or two of code to illustrate your point? I presume you’ve already established that it’s not a Heisenbug (i.e. only triggered when you’re running in the debugger)?
The issue turned out to be that I had two keypress event handlers on the same form element. I thought that one was on a field and the other was on the form. Anyway, when you have two handlers on the same element for the same event type, calling event.stopPropagation() in one does nothing in Firefox.
FWIW,
Rob