Bug Tracker

Opened 9 years ago

Closed 8 years ago

#15198 closed bug (migrated)

JQuery's trigger method doesn't populate currentTarget

Reported by: ArkadyKarev Owned by:
Priority: low Milestone: 1.12/2.2
Component: event Version: 2.1.1
Keywords: Cc:
Blocked by: Blocking:


This problem (see subject) makes jQuery not completely compatible with some libs, which uses currentTarget.

For example following example will not work correctly: http://jsfiddle.net/makfruit/C5QH3/ go to "Vegetables > *Cucumber" and press "Activate next" button. It will perform only radio button changes, but attached handlers will not be triggered. If we will click radio buttons manually, we can see the changes in price and description, etc.

The following workaround will help: var event = jQuery.Event('change'); event.currentTarget = event.target = parent[0]; parent.trigger(event); but anyway it seems like jQuerry bug.

Also I found the same requests in GWT groups. http://code.google.com/p/google-web-toolkit/issues/detail?id=8634

Change History (3)

comment:1 Changed 9 years ago by ArkadyKarev

Another words - jQuery not completely compatible with latest version of GWT - one of most popular Java frameworks for web apps, and probably with another libs.

comment:2 Changed 9 years ago by dmethvin

Milestone: None1.12/2.2
Priority: undecidedlow
Status: newopen

We can populate event.currentTarget but it also seems like this is a regression in GWT if it worked previously. So if GWT doesn't fix the regression on their end it won't be possible to use anything but the most recent version of jQuery with GWT.

comment:3 Changed 8 years ago by m_gol

Resolution: migrated
Status: openclosed
Note: See TracTickets for help on using tickets.