Skip to main content

Bug Tracker

Side navigation

#15198 closed bug (migrated)

Opened July 30, 2014 11:25AM UTC

Closed October 21, 2014 12:54AM UTC

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:
Description

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

Attachments (0)
Change History (3)

Changed July 30, 2014 01:58PM UTC by ArkadyKarev comment:1

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.

Changed July 30, 2014 02:25PM UTC by dmethvin comment:2

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.

Changed October 21, 2014 12:54AM UTC by m_gol comment:3

resolution: → migrated
status: openclosed