Bug Tracker

Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#7910 closed bug (invalid)

event.target is maybe undefined i

Reported by: EMVI Owned by: EMVI
Priority: undecided Milestone: 1.next
Component: event Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

in jQuery.event.special.change.filters.beforeactivate is event.target maybe undefined

.trigger('focus')

.focus()

.trigger(new $.Event({ target: myElementNode, pe: 'focus' });

I fixed it in an external file, so I don't want modify the original source.

var _beforeactivate = jQuery.event.special.change.filters.beforeactivate; jQuery.event.special.change.filters.focus = jQuery.event.special.change.filters.beforeactivate = function( e ) {

e.target = e.target | | e.currentTarget | | e.originalTarget;

_beforeactivate(e);

}

Change History (5)

comment:1 Changed 9 years ago by Rick Waldron

Owner: set to EMVI
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, test against the latest jQuery release and the jQuery 0 GIT version to ensure the issue still exists. Be Excellent to eachother!

comment:2 Changed 9 years ago by Rick Waldron

Component: unfiledevent

comment:3 Changed 9 years ago by EMVI

Status: pendingnew

This error occurs only in one case so far. There is a DomNode relates to some widgets and several events are bound.

I can't post this case, because this script depends an several scripts of my employer that are not allowed to publish.

comment:4 Changed 9 years ago by Rick Waldron

Status: newpending

Can you provide a reduced test case, that illustrates the bug using http://jsfiddle.net

comment:5 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.