Skip to main content

Bug Tracker

Side navigation

#2613 closed bug (fixed)

Opened March 29, 2008 04:07AM UTC

Closed May 07, 2008 05:51AM UTC

bind() breaks event.preventDefault()

Reported by: arrix Owned by:
Priority: major Milestone: 1.2.4
Component: event Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:
Description

This is a really strange issue. Calling bind makes preventDefault ineffective in Firefox2. (Opera, Firefox3 and Safari3.1 are OK)

It has something to do with event.fix. I think it is a firefox2 bug rather than a jquery bug.

Attachments (1)
Change History (3)

Changed March 29, 2008 04:26AM UTC by arrix comment:1

I just played a bit more. Changing the order of the 2 event registration statements (bind and then addEventListener) fixes the problem in Firefox 2.

Changed March 29, 2008 04:28AM UTC by arrix comment:2

description: This is a really strange issue. Calling bind makes preventDefault ineffective in Firefox2 and Opera (Firefox3 and Safari3.1 are OK) \ \ It has something to do with event.fix. Is this a jQuery bug or a browser bug? \ \ \ This is a really strange issue. Calling bind makes preventDefault ineffective in Firefox2. (Opera, Firefox3 and Safari3.1 are OK) \ \ It has something to do with event.fix. I think it is a firefox2 bug rather than a jquery bug. \ \ \

Changed May 07, 2008 05:51AM UTC by arrix comment:3

resolution: → fixed
status: newclosed

This is no longer reproducible with the latest jquery which does not copy preventDefault/stopPropagation to the cloned event object anymore. It seems that we should try to avoid copying such native/special properties.